|
libnx v4.9.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. | |
| Result | condvarWaitTimeout (CondVar *c, Mutex *m, u64 timeout) |
| Waits on a condition variable with a timeout. | |
| static Result | condvarWait (CondVar *c, Mutex *m) |
| Waits on a condition variable. | |
| static Result | condvarWake (CondVar *c, int num) |
| Wakes up up to the specified number of threads waiting on a condition variable. | |
| static Result | condvarWakeOne (CondVar *c) |
| Wakes up a single thread waiting on a condition variable. | |
| static Result | condvarWakeAll (CondVar *c) |
| Wakes up all thread waiting on a condition variable. | |
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. |