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.

Return Value

None.

See Also

mcreate(3), fcreate(3), munlock(3), funlock(3), cbroadcast(3), csignal(3), ffind(3), cdestroy(3), ccreate(3), mdestroy(3), cWait(3), flock(3), fdestroy(3), mLock

Referenced By

mlock(3)