psl1ght
A free SDK for Sony's PS3 console
|
Lightweight condition variable library. More...
Go to the source code of this file.
Data Structures | |
struct | sys_lwcond |
Lightweight condition variable data structure. More... | |
struct | sys_lwcond_attr |
Lightweight condition variable attributes data structure. More... | |
Typedefs | |
typedef struct sys_lwcond | sys_lwcond_t |
Lightweight condition variable data structure. | |
typedef struct sys_lwcond_attr | sys_lwcond_attr_t |
Lightweight condition variable attributes data structure. | |
Functions | |
s32 | sysLwCondCreate (sys_lwcond_t *lwcond, sys_lwmutex_t *lwmutex, sys_lwcond_attr_t *attr) |
Create a lightweight condition variable. More... | |
s32 | sysLwCondDestroy (sys_lwcond_t *lwcond) |
Destroy a lightweight condition variable. More... | |
s32 | sysLwCondWait (sys_lwcond_t *lwcond, u64 timeout_usec) |
Wait for a lightweight condition variable to be signaled. More... | |
s32 | sysLwCondSignal (sys_lwcond_t *lwcond) |
Signal a lightweight condition variable. More... | |
s32 | sysLwCondSignalTo (sys_lwcond_t *lwcond, sys_ppu_thread_t thr) |
Signal a lightweight condition variable to a specific PPU thread. More... | |
s32 | sysLwCondSignalAll (sys_lwcond_t *lwcond) |
Signal a lightweight condition variable to all waiting PPU threads. More... | |
Lightweight condition variable library.
s32 sysLwCondCreate | ( | sys_lwcond_t * | lwcond, |
sys_lwmutex_t * | lwmutex, | ||
sys_lwcond_attr_t * | attr | ||
) |
Create a lightweight condition variable.
lwcond | Pointer to storage for the created lightweight condition variable. |
lwmutex | Pointer to the associated lightweight mutex. |
attr | Pointer to the attributes data structure. |
s32 sysLwCondDestroy | ( | sys_lwcond_t * | lwcond | ) |
Destroy a lightweight condition variable.
lwcond | Pointer to the allocated lightweight condition variable. |
s32 sysLwCondSignal | ( | sys_lwcond_t * | lwcond | ) |
Signal a lightweight condition variable.
lwcond | Pointer to the allocated lightweight condition variable. |
s32 sysLwCondSignalAll | ( | sys_lwcond_t * | lwcond | ) |
Signal a lightweight condition variable to all waiting PPU threads.
lwcond | Pointer to the allocated lightweight condition variable. |
s32 sysLwCondSignalTo | ( | sys_lwcond_t * | lwcond, |
sys_ppu_thread_t | thr | ||
) |
Signal a lightweight condition variable to a specific PPU thread.
lwcond | Pointer to the allocated lightweight condition variable. |
thr | The PPU thread id. |
s32 sysLwCondWait | ( | sys_lwcond_t * | lwcond, |
u64 | timeout_usec | ||
) |
Wait for a lightweight condition variable to be signaled.
The associated lightweight mutex must have been previously locked by the calling thread. This function atomically unlocks the mutex and waits for the condition variable to be signaled. Before returning to the calling thread, this function re-acquires the mutex.
lwcond | Pointer to the allocated lightweight condition variable. |
timeout_usec | Timeout value in microseconds, or 0 if no timeout is used. |