42 #define LWP_COND_NULL 0xffffffff int32_t s32
32bit signed integer
Definition: gctypes.h:24
int mutex_t
typedef for the mutex handle
Definition: lock.c:6
static int cond(LexState *ls)
Definition: lparser.c:1177
static sys_sem mutex
Definition: memp.c:120
s32 LWP_CondDestroy(cond_t cond)
Destroy condition variable, release all threads and handles blocked on that condition variable.
Definition: cond.c:186
s32 LWP_CondSignal(cond_t cond)
Signal a specific thread waiting on this condition variable to wake up.
Definition: cond.c:167
s32 LWP_CondWait(cond_t cond, mutex_t mutex)
Wait on condition variable.
Definition: cond.c:162
u32 cond_t
typedef for the condition variable handle
Definition: cond.h:52
s32 LWP_CondBroadcast(cond_t cond)
Broadcast all threads waiting on this condition variable to wake up.
Definition: cond.c:172
s32 LWP_CondTimedWait(cond_t cond, mutex_t mutex, const struct timespec *abstime)
Timed wait on a conditionvariable.
Definition: cond.c:177
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
s32 LWP_CondInit(cond_t *cond)
Initialize condition variable.
Definition: cond.c:144