9 #include "../kernel/svc.h"
10 #include "../kernel/mutex.h"
Result condvarWaitTimeout(CondVar *c, Mutex *m, u64 timeout)
Waits on a condition variable with a timeout.
static Result condvarWakeAll(CondVar *c)
Wakes up all thread waiting on a condition variable.
Definition: condvar.h:73
static Result condvarWake(CondVar *c, int num)
Wakes up up to the specified number of threads waiting on a condition variable.
Definition: condvar.h:52
static void condvarInit(CondVar *c)
Initializes a condition variable.
Definition: condvar.h:19
static Result condvarWait(CondVar *c, Mutex *m)
Waits on a condition variable.
Definition: condvar.h:41
u32 CondVar
Condition variable.
Definition: condvar.h:13
static Result condvarWakeOne(CondVar *c)
Wakes up a single thread waiting on a condition variable.
Definition: condvar.h:63
_LOCK_T Mutex
Mutex datatype, defined in newlib.
Definition: mutex.h:12
void svcSignalProcessWideKey(u32 *key, s32 num)
Performs a condition variable wake-up operation in userspace.
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
u32 Result
Function error code result type.
Definition: types.h:44
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21