vitasdk
Documentation of the vitasdk
mutex.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2KERN_KERNEL_THREADMGR_MUTEX_H_
7 #define _PSP2KERN_KERNEL_THREADMGR_MUTEX_H_
8 
9 #include <vitasdk/build_utils.h>
10 #include <psp2kern/types.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 
33 SceUID ksceKernelCreateMutex(const char *name, SceUInt attr, int initCount, SceKernelMutexOptParam *option);
34 
42 
51 int ksceKernelLockMutex(SceUID mutexid, int lockCount, unsigned int *timeout);
52 
60 int ksceKernelTryLockMutex(SceUID mutexid, int lockCount);
61 
69 int ksceKernelUnlockMutex(SceUID mutexid, int unlockCount);
70 
79 int ksceKernelCancelMutex(SceUID mutexid, int newCount, int *numWaitThreads);
80 
90 
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif /* _PSP2KERN_KERNEL_THREADMGR_MUTEX_H_ */
int ksceKernelGetMutexInfo(SceUID mutexid, SceKernelMutexInfo *info)
Retrieve information about a mutex.
int ksceKernelUnlockMutex(SceUID mutexid, int unlockCount)
Try to unlock a mutex (non-blocking)
int ksceKernelLockMutex(SceUID mutexid, int lockCount, unsigned int *timeout)
Lock a mutex.
int ksceKernelCancelMutex(SceUID mutexid, int newCount, int *numWaitThreads)
Cancels a mutex.
SceUID ksceKernelCreateMutex(const char *name, SceUInt attr, int initCount, SceKernelMutexOptParam *option)
Creates a new mutex.
int ksceKernelDeleteMutex(SceUID mutexid)
Destroy a mutex.
int ksceKernelTryLockMutex(SceUID mutexid, int lockCount)
Try to lock a mutex (non-blocking)
Current state of a mutex.
Definition: threadmgr.h:284
Additional options used when creating mutexes.
Definition: threadmgr.h:274
uint32_t SceUInt
Definition: types.h:48
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90