#include <oskit/threads/pthread.h>int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, oskit_timespec_t *abstime);
The current thread is made to wait until the condition variable is signaled or broadcast, or until the timeout expires. The mutex is released prior to waiting, and reacquired before returning. The timeout is given as an absolute time in the future that bounds the wait.
- cond
- A pointer to the condition variable object.
- mutex
- A pointer to the mutex object.
- abstime
- A pointer to an oskit_timespec structure.
Returns zero on success. Returns ETIMEDOUT if the timeout expires.
pthread_cond_signal, pthread_cond_broadcast, pthread_cond_wait