vitasdk
Documentation of the vitasdk
cond.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2_KERNEL_THREADMGR_COND_H_
7 #define _PSP2_KERNEL_THREADMGR_COND_H_
8 
9 #include <vitasdk/build_utils.h>
10 #include <psp2/types.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 
33 SceUID sceKernelCreateCond(const char *name, SceUInt attr, SceUID mutexId, const SceKernelCondOptParam *option);
34 
42 
49 int sceKernelOpenCond(const char *name);
50 
58 
66 int sceKernelWaitCond(SceUID condId, unsigned int *timeout);
67 
75 int sceKernelWaitCondCB(SceUID condId, unsigned int *timeout);
76 
84 
92 
100 int sceKernelSignalCondTo(SceUID condId, SceUID threadId);
101 
102 #ifdef __cplusplus
103 }
104 #endif
105 
106 #endif /* _PSP2_KERNEL_THREADMGR_COND_H_ */
int sceKernelDeleteCond(SceUID condId)
Destroy a condition variable.
int sceKernelSignalCond(SceUID condId)
Signals a condition variable.
SceUID sceKernelCreateCond(const char *name, SceUInt attr, SceUID mutexId, const SceKernelCondOptParam *option)
Creates a new condition variable.
int sceKernelOpenCond(const char *name)
Open a condition variable.
int sceKernelCloseCond(SceUID condId)
Close a condition variable.
int sceKernelWaitCond(SceUID condId, unsigned int *timeout)
Waits for a signal of a condition variable.
int sceKernelSignalCondTo(SceUID condId, SceUID threadId)
Signals a condition variable to a specific thread waiting for it.
int sceKernelSignalCondAll(SceUID condId)
Signals a condition variable to all threads waiting for it.
int sceKernelWaitCondCB(SceUID condId, unsigned int *timeout)
Waits for a signal of a condition variable (with callbacks)
Additional options used when creating condition variables.
Definition: threadmgr.h:307
uint32_t SceUInt
Definition: types.h:48
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90