cWait(3)

✨ NAME ✨

cWait - wait a condition variable signal. πŸ’…

okay bestie, this is cWait(3), and it lives in util/ulocks.h. section 3 energy. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

the include and the signature, verbatim, no cap:

#include <util/ulocks.h>

NEOERR *cWait(pthread_cond_t *cond, pthread_mutex_t *mutex);

πŸ’– ARGUMENTS πŸ’–

  • cond β€” condition variable to wait on. the thing you're waiting on, periodt.
  • mutex β€” locked mutex to protect <cond>. πŸ”’ locked, bestie, don't forget.

πŸ’… DESCRIPTION πŸ’…

Waits for a signal on condition variable <cond>. The mutex <mutex> must be locked by the thread. πŸ”

MT-Level: Safe. βœ…


🌈 RETURN VALUE 🌈

None. πŸ’€ that's it, that's the whole vibe.


πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, bestie:

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.


ClearSilver β€’ 12 July 2007 β€” that's the source and date for this cWait(3) page, bestie. stay slay. πŸ’–