#include <gctypes.h>
#include <time.h>
Defines | |
#define | LWP_COND_NULL 0xffffffff |
Typedefs | |
typedef u32 | cond_t |
typedef for the condition variable handle | |
Functions | |
s32 | LWP_CondInit (cond_t *cond) |
Initialize condition variable. | |
s32 | LWP_CondWait (cond_t cond, mutex_t mutex) |
Wait on condition variable. | |
s32 | LWP_CondSignal (cond_t cond) |
Signal a specific thread waiting on this condition variable to wake up. | |
s32 | LWP_CondBroadcast (cond_t cond) |
Broadcast all threads waiting on this condition variable to wake up. | |
s32 | LWP_CondTimedWait (cond_t cond, mutex_t mutex, const struct timespec *abstime) |
Timed wait on a conditionvariable. | |
s32 | LWP_CondDestroy (cond_t cond) |
Destroy condition variable, release all threads and handles blocked on that condition variable. |
Broadcast all threads waiting on this condition variable to wake up.
[in] | cond | handle to the cond_t structure |
Destroy condition variable, release all threads and handles blocked on that condition variable.
[in] | cond | handle to the cond_t structure |
Initialize condition variable.
[out] | cond | pointer to the cond_t handle |
Signal a specific thread waiting on this condition variable to wake up.
[in] | cond | handle to the cond_t structure |
Timed wait on a conditionvariable.
[in] | cond | handle to the cond_t structure |
[in] | mutex | handle to the mutex_t structure |
[in] | abstime | pointer to a timespec structure holding the abs time for the timeout. |
Wait on condition variable.
[in] | cond | handle to the cond_t structure |
[in] | mutex | handle to the mutex_t structure |