next up previous contents index
Next: 18.3.22 pthread_cond_signal: Wakeup one Up: 18.3 POSIX Threads Reference Previous: 18.3.20 pthread_cond_destroy: Destroy a

18.3.21 pthread_cond_init: Initialize a condition variable

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_cond_init(pthread_cond_t *cond, pthread_condattr_t *attr);

DESCRIPTION

Initialize a condition variable object, using the provided condition attributes object. The attributes object may be a NULL pointer, in which case pthread_condattr_default is used.

PARAMETERS

cond
A pointer to the condition variable object.
attr
A pointer to the condition variable attributes object.

RETURNS

Returns zero on success.

RELATED INFORMATION

pthread_cond_destroy



University of Utah Flux Research Group