1
1
openmpi/src/threads/condition_pthread.c
Jeff Squyres 3f5541349a Add UC copyright
This commit was SVN r5009.
2005-03-24 12:43:37 +00:00

40 строки
1.1 KiB
C

/*
* Copyright (c) 2004-2005 The Trustees of Indiana University.
* All rights reserved.
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
* All rights reserved.
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ompi_config.h"
#include "threads/mutex.h"
#include "threads/condition.h"
#if OMPI_HAVE_POSIX_THREADS && OMPI_ENABLE_PROGRESS_THREADS
static void ompi_condition_construct(ompi_condition_t *c)
{
pthread_cond_init(&c->c_cond, NULL);
}
static void ompi_condition_destruct(ompi_condition_t *c)
{
pthread_cond_destroy(&c->c_cond);
}
OBJ_CLASS_INSTANCE(ompi_condition_t,
ompi_object_t,
ompi_condition_construct,
ompi_condition_destruct);
#endif