6 #ifndef _PSP2_KERNEL_THREADMGR_MUTEX_H_
7 #define _PSP2_KERNEL_THREADMGR_MUTEX_H_
int sceKernelLockMutex(SceUID mutexid, int lockCount, unsigned int *timeout)
Lock a mutex.
int sceKernelDeleteMutex(SceUID mutexid)
Destroy a mutex.
int sceKernelUnlockMutex(SceUID mutexid, int unlockCount)
Try to unlock a mutex (non-blocking)
SceUID sceKernelCreateMutex(const char *name, SceUInt attr, int initCount, SceKernelMutexOptParam *option)
Creates a new mutex.
int sceKernelGetMutexInfo(SceUID mutexid, SceKernelMutexInfo *info)
Retrieve information about a mutex.
int sceKernelLockMutexCB(SceUID mutexid, int lockCount, unsigned int *timeout)
Lock a mutex and handle callbacks if necessary.
int sceKernelTryLockMutex(SceUID mutexid, int lockCount)
Try to lock a mutex (non-blocking)
int sceKernelCloseMutex(SceUID mutexid)
Close a mutex.
int sceKernelOpenMutex(const char *name)
Open a mutex.
int sceKernelCancelMutex(SceUID mutexid, int newCount, int *numWaitThreads)
Cancels a mutex.
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