14typedef struct CondVar {
16 atomic(uint32) lastseq;
20void _cvarInit(_Out_ CondVar *cv, uint32 flags);
21#define cvarInit(cv, ...) _cvarInit(cv, opt_flags(__VA_ARGS__))
23void cvarDestroy(_Inout_ CondVar *cv);
25_Requires_lock_held_(*m)
26bool cvarWaitTimeout(_Inout_ CondVar *cv, _Inout_
Mutex *m, int64 timeout);
27_Requires_lock_held_(*m)
28_meta_inline
bool cvarWait(_Inout_ CondVar *cv, _Inout_
Mutex *m)
32bool cvarSignal(_Inout_ CondVar *cv);
33bool cvarBroadcast(_Inout_ CondVar *cv);
#define timeForever
Maximum representable time value (approximately year 294,276 CE)
Mutex synchronization primitive.