vitasdk
Documentation of the vitasdk
semaphore.h
Go to the documentation of this file.
1
6#ifndef _PSP2_KERNEL_THREADMGR_SEMAPHORE_H_
7#define _PSP2_KERNEL_THREADMGR_SEMAPHORE_H_
8
10#include <psp2/types.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17
34SceUID sceKernelCreateSema(const char *name, SceUInt attr, int initVal, int maxVal, SceKernelSemaOptParam *option);
35
43
58int sceKernelSignalSema(SceUID semaid, int signal);
59
74int sceKernelWaitSema(SceUID semaid, int signal, SceUInt *timeout);
75
90int sceKernelWaitSemaCB(SceUID semaid, int signal, SceUInt *timeout);
91
100int sceKernelPollSema(SceUID semaid, int signal);
101
110int sceKernelCancelSema(SceUID semaid, int setCount, int *numWaitThreads);
111
121
122SceUID sceKernelOpenSema(const char *name);
123
125
126
127#ifdef __cplusplus
128}
129#endif
130
131#endif /* _PSP2_KERNEL_THREADMGR_SEMAPHORE_H_ */
int sceKernelWaitSemaCB(SceUID semaid, int signal, SceUInt *timeout)
Lock a semaphore and handle callbacks if necessary.
int sceKernelCloseSema(SceUID semaid)
SceUID sceKernelOpenSema(const char *name)
int sceKernelPollSema(SceUID semaid, int signal)
Poll a semaphore.
int sceKernelCancelSema(SceUID semaid, int setCount, int *numWaitThreads)
Cancels a semaphore.
int sceKernelGetSemaInfo(SceUID semaid, SceKernelSemaInfo *info)
Retrieve information about a semaphore.
int sceKernelSignalSema(SceUID semaid, int signal)
Send a signal to a semaphore.
int sceKernelWaitSema(SceUID semaid, int signal, SceUInt *timeout)
Lock a semaphore.
int sceKernelDeleteSema(SceUID semaid)
Destroy a semaphore.
SceUID sceKernelCreateSema(const char *name, SceUInt attr, int initVal, int maxVal, SceKernelSemaOptParam *option)
Creates a new semaphore.
Current state of a semaphore.
Definition threadmgr.h:175
Additional options used when creating semaphores.
Definition threadmgr.h:166
uint32_t SceUInt
Definition types.h:48
int SceUID
UIDs are used to describe many different kernel objects.
Definition types.h:90