psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
cond.h
Go to the documentation of this file.
1
5#ifndef __LV2_COND_H__
6#define __LV2_COND_H__
7
8#include <ppu-types.h>
9#include <lv2/mutex.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
21
23typedef struct sys_lwcond_attr
24{
25 char name[8];
27
35
41
54s32 sysLwCondWait(sys_lwcond_t *lwcond,u64 timeout_usec);
55
61
67s32 sysLwCondSignalTo(sys_lwcond_t *lwcond,sys_ppu_thread_t thr);
68
74
75#ifdef __cplusplus
76 }
77#endif
78
79#endif
s32 sysLwCondWait(sys_lwcond_t *lwcond, u64 timeout_usec)
Wait for a lightweight condition variable to be signaled.
s32 sysLwCondSignalTo(sys_lwcond_t *lwcond, sys_ppu_thread_t thr)
Signal a lightweight condition variable to a specific PPU thread.
s32 sysLwCondSignalAll(sys_lwcond_t *lwcond)
Signal a lightweight condition variable to all waiting PPU threads.
s32 sysLwCondDestroy(sys_lwcond_t *lwcond)
Destroy a lightweight condition variable.
s32 sysLwCondSignal(sys_lwcond_t *lwcond)
Signal a lightweight condition variable.
s32 sysLwCondCreate(sys_lwcond_t *lwcond, sys_lwmutex_t *lwmutex, sys_lwcond_attr_t *attr)
Create a lightweight condition variable.
struct sys_lwcond sys_lwcond_t
Lightweight condition variable data structure.
struct sys_lwcond_attr sys_lwcond_attr_t
Lightweight condition variable attributes data structure.
Lightweight mutex library.
Lightweight condition variable attributes data structure.
Definition cond.h:24
char name[8]
Name.
Definition cond.h:25
Lightweight condition variable data structure.
Definition cond.h:17
u32 lwcond_queue
Next element in waiting queue.
Definition cond.h:19
sys_lwmutex_t * lwmutex
Associated lightweight mutex.
Definition cond.h:18
Lightweight mutex data structure.
Definition mutex.h:32