int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
This function atomically releases the mutex, causing the calling thread to block on the condition variable Upon successful completion, the mutex is locked and owned by the calling thread.
When using condition variables,
there should always be a boolean predicate involving shared
variables related to each condition wait. This predicate should
become true only when the thread should proceed. Because the
Is the condition variable to wait on.
Is the mutex associated with the condition variable.
cond does not refer to an initialized condition variable, or mutex does not refer to an initialized mutex. Different mutexes were specified in multiple waits on cond. mutex is not owned by the caller.
cond or mutex is an invalid pointer.
POSIX P1003.1 (1996)
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
pthread_cond_broadcast(), pthread_cond_init(), pthread_cond_signal(), pthread_cond_timedwait(), pthread_mutex_init()
PTC MKS Toolkit 10.3 Documentation Build 39.