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
>
12
#include <
psp2common/kernel/threadmgr.h
>
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
27
int
ksceKernelGetSemaInfo
(
SceUID
semaid,
SceKernelSemaInfo
*info);
28
45
SceUID
ksceKernelCreateSema
(
const
char
*name,
SceUInt
attr,
int
initVal,
int
maxVal,
SceKernelSemaOptParam
*option);
46
53
int
ksceKernelDeleteSema
(
SceUID
semaid);
54
69
int
ksceKernelSignalSema
(
SceUID
semaid,
int
signal);
70
85
int
ksceKernelWaitSema
(
SceUID
semaid,
int
signal,
SceUInt
*timeout);
86
95
int
ksceKernelPollSema
(
SceUID
semaid,
int
signal);
96
97
98
#ifdef __cplusplus
99
}
100
#endif
101
102
#endif
/* _PSP2KERN_KERNEL_THREADMGR_SEMAPHORES_H_ */
build_utils.h
ksceKernelPollSema
int ksceKernelPollSema(SceUID semaid, int signal)
Poll a semaphore.
ksceKernelWaitSema
int ksceKernelWaitSema(SceUID semaid, int signal, SceUInt *timeout)
Lock a semaphore.
ksceKernelGetSemaInfo
int ksceKernelGetSemaInfo(SceUID semaid, SceKernelSemaInfo *info)
Get semaphore info.
ksceKernelDeleteSema
int ksceKernelDeleteSema(SceUID semaid)
Destroy a semaphore.
ksceKernelSignalSema
int ksceKernelSignalSema(SceUID semaid, int signal)
Send a signal to a semaphore.
ksceKernelCreateSema
SceUID ksceKernelCreateSema(const char *name, SceUInt attr, int initVal, int maxVal, SceKernelSemaOptParam *option)
Creates a new semaphore.
SceKernelSemaInfo
Current state of a semaphore.
Definition:
threadmgr.h:175
SceKernelSemaOptParam
Additional options used when creating semaphores.
Definition:
threadmgr.h:166
SceUInt
uint32_t SceUInt
Definition:
types.h:48
SceUID
int SceUID
UIDs are used to describe many different kernel objects.
Definition:
types.h:90
threadmgr.h
types.h
include
psp2kern
kernel
threadmgr
semaphores.h
Vita SDK