CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
condvar.h File Reference

Condition variable synchronization primitive. More...

#include <cx/cx.h>
#include "aspin.h"
#include "futex.h"
#include "mutex.h"

Go to the source code of this file.

Data Structures

struct  CondVar
 

Macros

#define cvarInit(cv, ...)   _cvarInit(cv, opt_flags(__VA_ARGS__))
 

Typedefs

typedef struct CondVar CondVar
 

Enumerations

enum  CONDVAR_Flags { CONDVAR_NoSpin = 1 }
 Condition variable initialization flags. More...
 

Functions

void cvarDestroy (CondVar *cv)
 
_Requires_lock_held_ m bool cvarWaitTimeout (CondVar *cv, Mutex *m, int64 timeout)
 
_Requires_lock_held_ m bool cvarWait (CondVar *cv, Mutex *m)
 
bool cvarSignal (CondVar *cv)
 
bool cvarBroadcast (CondVar *cv)
 

Detailed Description

Condition variable synchronization primitive.

Definition in file condvar.h.