void cond_wait(cond_t *cond, mutex_t *mutex)
Waits on a condition.
list_node_t queue
The process waiting queue of the condition variable.
void cond_signal(cond_t *cond)
Wakes up one thread waiting on the condition variable.
void cond_broadcast(cond_t *cond)
Wakes up all threads waiting on the condition variable.
Mutex for thread synchronization.
Condition variable structure.
void cond_init(cond_t *cond)
Initializes a condition variable.