62typedef struct condvar {
68#define COND_INITIALIZER { 0, 0 }
Definitions for builtin attributes and compiler directives.
int cond_signal(condvar_t *cv)
Signal a single thread waiting on the condition variable.
int cond_destroy(condvar_t *cv)
Free a condition variable.
int cond_wait_timed(condvar_t *cv, mutex_t *m, int timeout)
Wait on a condition variable with a timeout.
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.
condvar_t * cond_create() __depr("Use cond_init or COND_INITIALIZER.")
Allocate a new condition variable.
int cond_init(condvar_t *cv)
Initialize a condition variable.
#define COND_INITIALIZER
Initializer for a transient condvar.
Definition cond.h:68
#define __depr(m)
Mark something as deprecated, with an informative message.
Definition cdefs.h:119
Condition variable.
Definition cond.h:62
int dynamic
Definition cond.h:64
int dummy
Definition cond.h:63
Mutual exclusion lock type.
Definition mutex.h:68