libnx
v4.7.0
|
Condition variable synchronization primitive. More...
Go to the source code of this file.
Typedefs | |
typedef u32 | CondVar |
Condition variable. | |
Functions | |
static void | condvarInit (CondVar *c) |
Initializes a condition variable. More... | |
Result | condvarWaitTimeout (CondVar *c, Mutex *m, u64 timeout) |
Waits on a condition variable with a timeout. More... | |
static Result | condvarWait (CondVar *c, Mutex *m) |
Waits on a condition variable. More... | |
static Result | condvarWake (CondVar *c, int num) |
Wakes up up to the specified number of threads waiting on a condition variable. More... | |
static Result | condvarWakeOne (CondVar *c) |
Wakes up a single thread waiting on a condition variable. More... | |
static Result | condvarWakeAll (CondVar *c) |
Wakes up all thread waiting on a condition variable. More... | |
Condition variable synchronization primitive.
|
inlinestatic |
Initializes a condition variable.
[in] | c | Condition variable object. |
Waits on a condition variable.
[in] | c | Condition variable object. |
[in] | m | Mutex object to use inside the condition variable. |
Waits on a condition variable with a timeout.
[in] | c | Condition variable object. |
[in] | m | Mutex object to use inside the condition variable. |
[in] | timeout | Timeout in nanoseconds. |
Wakes up up to the specified number of threads waiting on a condition variable.
[in] | c | Condition variable object. |
[in] | num | Maximum number of threads to wake up (or -1 to wake them all up). |
Wakes up all thread waiting on a condition variable.
[in] | c | Condition variable object. |