Condition variable for thread synchronization. More...
Condition variable for thread synchronization.
Definition in file cond.h.
Go to the source code of this file.
Data Structures | |
struct | cond_t |
Condition variable structure. More... | |
Macros | |
#define | COND_INIT { { NULL } } |
Static initializer for cond_t. More... | |
Functions | |
void | cond_init (cond_t *cond) |
Initializes a condition variable. More... | |
void | cond_wait (cond_t *cond, mutex_t *mutex) |
Waits on a condition. More... | |
void | cond_signal (cond_t *cond) |
Wakes up one thread waiting on the condition variable. More... | |
void | cond_broadcast (cond_t *cond) |
Wakes up all threads waiting on the condition variable. More... | |