11#define SYS_COND_ATTR_PSHARED 0x0200
27#define sysCondAttrInitialize(x) \
29 x.attr_pshared = SYS_COND_ATTR_PSHARED; \
43 lv2syscall3(105,(u64)cond,mutex,(u64)attr);
44 return_to_user_prog(s32);
53 lv2syscall1(106,cond);
54 return_to_user_prog(s32);
71 lv2syscall2(107,cond,timeout_usec);
72 return_to_user_prog(s32);
81 lv2syscall1(108,cond);
82 return_to_user_prog(s32);
91 lv2syscall1(109,cond);
92 return_to_user_prog(s32);
Lightweight condition variable library.
Condition variable attributes data structure.
u32 attr_pshared
Pshared flag. Must be 0 or SYS_COND_ATTR_PSHARED.
LV2_SYSCALL sysCondCreate(sys_cond_t *cond, sys_mutex_t mutex, const sys_cond_attr_t *attr)
Create a condition variable.
struct sys_cond_attr sys_cond_attr_t
Condition variable attributes data structure.
LV2_SYSCALL sysCondDestroy(sys_cond_t cond)
Destroy a condition variable.
LV2_SYSCALL sysCondBroadcast(sys_cond_t cond)
Signal a condition variable to all waiting threads.
LV2_SYSCALL sysCondWait(sys_cond_t cond, u64 timeout_usec)
Wait for a condition variable to be signaled.
LV2_SYSCALL sysCondSignal(sys_cond_t cond)
Signal a condition variable to at most one waiting thread.