#include <gctypes.h>
#include <time.h>
Go to the source code of this file.
◆ LWP_COND_NULL
#define LWP_COND_NULL 0xffffffff |
◆ 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()
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