vitasdk
Documentation of the vitasdk
semaphores.h
Go to the documentation of this file.
1
7#ifndef _PSP2KERN_KERNEL_THREADMGR_SEMAPHORES_H_
8#define _PSP2KERN_KERNEL_THREADMGR_SEMAPHORES_H_
9
10#include <vitasdk/build_utils.h>
11#include <psp2kern/types.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18
28
45SceUID ksceKernelCreateSema(const char *name, SceUInt attr, int initVal, int maxVal, SceKernelSemaOptParam *option);
46
54
69int ksceKernelSignalSema(SceUID semaid, int signal);
70
85int ksceKernelWaitSema(SceUID semaid, int signal, SceUInt *timeout);
86
95int ksceKernelPollSema(SceUID semaid, int signal);
96
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif /* _PSP2KERN_KERNEL_THREADMGR_SEMAPHORES_H_ */
int ksceKernelPollSema(SceUID semaid, int signal)
Poll a semaphore.
int ksceKernelWaitSema(SceUID semaid, int signal, SceUInt *timeout)
Lock a semaphore.
int ksceKernelGetSemaInfo(SceUID semaid, SceKernelSemaInfo *info)
Get semaphore info.
int ksceKernelDeleteSema(SceUID semaid)
Destroy a semaphore.
int ksceKernelSignalSema(SceUID semaid, int signal)
Send a signal to a semaphore.
SceUID ksceKernelCreateSema(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