Thread subsystem V.
More...
#include <gctypes.h>
#include <time.h>
|
#define | LWP_COND_NULL 0xffffffff |
|
|
typedef u32 | cond_t |
| typedef for the condition variable handle
|
|
◆ LWP_CondBroadcast()
Broadcast all threads waiting on this condition variable to wake up.
- Parameters
-
[in] | cond | handle to the cond_t structure |
- Returns
- 0 on success, <0 on error
◆ LWP_CondDestroy()
Destroy condition variable, release all threads and handles blocked on that condition variable.
- Parameters
-
[in] | cond | handle to the cond_t structure |
- Returns
- 0 on success, <0 on error
◆ LWP_CondInit()
Initialize condition variable.
- Parameters
-
[out] | cond | pointer to the cond_t handle |
- Returns
- 0 on success, <0 on error
◆ LWP_CondSignal()
Signal a specific thread waiting on this condition variable to wake up.
- Parameters
-
[in] | cond | handle to the cond_t structure |
- Returns
- 0 on success, <0 on error
◆ LWP_CondTimedWait()
s32 LWP_CondTimedWait |
( |
cond_t |
cond, |
|
|
mutex_t |
mutex, |
|
|
const struct timespec * |
abstime |
|
) |
| |
Timed wait on a conditionvariable.
- Parameters
-
[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. |
- Returns
- 0 on success, <0 on error
◆ LWP_CondWait()
Wait on condition variable.
- Parameters
-
[in] | cond | handle to the cond_t structure |
[in] | mutex | handle to the mutex_t structure |
- Returns
- 0 on success, <0 on error