47 #include <sys/cdefs.h>
67 #define COND_INITIALIZER { 1, 0 }
int dynamic
Definition: cond.h:63
int cond_wait(condvar_t *cv, mutex_t *m)
Wait on a condition variable.
int cond_broadcast(condvar_t *cv)
Signal all threads waiting on the condition variable.
Condition variable.
Definition: cond.h:61
Mutual exclusion lock type.
Definition: mutex.h:70
int initialized
Definition: cond.h:62
condvar_t * cond_create() __attribute__((deprecated))
Allocate a new condition variable.
int cond_wait_timed(condvar_t *cv, mutex_t *m, int timeout)
Wait on a condition variable with a timeout.
int cond_init(condvar_t *cv)
Initialize a condition variable.
int cond_destroy(condvar_t *cv)
Free a condition variable.
int cond_signal(condvar_t *cv)
Signal a single thread waiting on the condition variable.
struct condvar condvar_t
Condition variable.