#include <oskit/threads/pthread.h>int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
The current thread is made to wait until the condition variable is signaled or broadcast. The mutex is released prior to waiting, and reacquired before returning.
- cond
- A pointer to the condition variable object.
- mutex
- A pointer to the mutex object.
Returns zero on success.
pthread_cond_signal, pthread_cond_broadcast, pthread_cond_timedwait