| Defined in header |
int cnd_wait( cnd_t* cond, mtx_t* mutex );
Atomically unlocks the mutex pointed to by
mutex and blocks on the condition variable pointed to by
cond until the thread is signalled by
cnd_broadcast, or until a spurious wake-up occurs. The mutex is locked again before the function returns.
The behavior is undefined if the mutex is not already locked by the calling thread.
|cond||-||pointer to the condition variable to block on|
|mutex||-||pointer to the mutex to unlock for the duration of the block|
| blocks on a condition variable, with a timeout
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.