vitasdk
Documentation of the vitasdk
eventflag.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2_KERNEL_THREADMGR_EVENTFLAG_H_
7 #define _PSP2_KERNEL_THREADMGR_EVENTFLAG_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 sceKernelCreateEventFlag(const char *name, int attr, int bits, SceKernelEventFlagOptParam *opt);
34 
43 int sceKernelSetEventFlag(SceUID evid, unsigned int bits);
44 
53 int sceKernelClearEventFlag(SceUID evid, unsigned int bits);
54 
64 int sceKernelPollEventFlag(int evid, unsigned int bits, unsigned int wait, unsigned int *outBits);
65 
76 int sceKernelWaitEventFlag(int evid, unsigned int bits, unsigned int wait, unsigned int *outBits, SceUInt *timeout);
77 
88 int sceKernelWaitEventFlagCB(int evid, unsigned int bits, unsigned int wait, unsigned int *outBits, SceUInt *timeout);
89 
98 
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif /* _PSP2_KERNEL_THREADMGR_EVENTFLAG_H_ */
int sceKernelPollEventFlag(int evid, unsigned int bits, unsigned int wait, unsigned int *outBits)
Poll an event flag for a given bit pattern.
int sceKernelSetEventFlag(SceUID evid, unsigned int bits)
Set an event flag bit pattern.
SceUID sceKernelCreateEventFlag(const char *name, int attr, int bits, SceKernelEventFlagOptParam *opt)
Create an event flag.
int sceKernelClearEventFlag(SceUID evid, unsigned int bits)
Clear a event flag bit pattern.
int sceKernelDeleteEventFlag(int evid)
Delete an event flag.
int sceKernelWaitEventFlagCB(int evid, unsigned int bits, unsigned int wait, unsigned int *outBits, SceUInt *timeout)
Wait for an event flag for a given bit pattern with callback.
int sceKernelWaitEventFlag(int evid, unsigned int bits, unsigned int wait, unsigned int *outBits, SceUInt *timeout)
Wait for an event flag for a given bit pattern.
int sceKernelGetEventFlagInfo(SceUID event, SceKernelEventFlagInfo *info)
Get the status of an event flag.
Structure to hold the event flag information.
Definition: threadmgr.h:218
Definition: threadmgr.h:212
uint32_t SceUInt
Definition: types.h:48
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90