vitasdk
Documentation of the vitasdk
cond.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2KERN_KERNEL_THREADMGR_COND_H_
8 #define _PSP2KERN_KERNEL_THREADMGR_COND_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2kern/types.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 
34 SceUID ksceKernelCreateCond(const char *name, SceUInt attr, SceUID mutexId, const SceKernelCondOptParam *option);
35 
43 
51 int ksceKernelWaitCond(SceUID condId, unsigned int *timeout);
52 
60 
68 
76 int ksceKernelSignalCondTo(SceUID condId, SceUID threadId);
77 
78 
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif /* _PSP2KERN_KERNEL_THREADMGR_COND_H_ */
SceUID ksceKernelCreateCond(const char *name, SceUInt attr, SceUID mutexId, const SceKernelCondOptParam *option)
Creates a new condition variable.
int ksceKernelSignalCondAll(SceUID condId)
Signals a condition variable to all threads waiting for it.
int ksceKernelSignalCondTo(SceUID condId, SceUID threadId)
Signals a condition variable to a specific thread waiting for it.
int ksceKernelDeleteCond(SceUID condId)
Destroy a condition variable.
int ksceKernelWaitCond(SceUID condId, unsigned int *timeout)
Waits for a signal of a condition variable.
int ksceKernelSignalCond(SceUID condId)
Signals a condition variable.
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