cwait(3) - Linux man page
Name
cWait - wait a condition variable signal.Synopsis
#include <util/ulocks.h> NEOERR *cWait(pthread_cond_t *cond, pthread_mutex_t *mutex);
Arguments
cond - condition variable to wait on.mutex - locked mutex to protect <cond>.
Description
Waits for a signal on condition variable <cond>. The mutex <mutex> must be locked by the thread.MT-Level: Safe.