vitasdk
Documentation of the vitasdk
rwlock.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/types.h>

Go to the source code of this file.

Data Structures

struct  SceKernelRWLockOptParam
 Additional options used when creating rwlock. More...
 
struct  SceKernelRWLockInfo
 Current state of a rwlock. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (4, SceKernelRWLockOptParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x3C, SceKernelRWLockInfo)
 
SceUID sceKernelCreateRWLock (const char *name, SceUInt32 attr, const SceKernelRWLockOptParam *opt_param)
 Creates a new rwlock. More...
 
int sceKernelDeleteRWLock (SceUID rwlock_id)
 Destroy a rwlock. More...
 
SceUID sceKernelOpenRWLock (const char *name)
 Open a rwlock. More...
 
int sceKernelCloseRWLock (SceUID rwlock_id)
 Close a rwlock. More...
 
int sceKernelLockReadRWLock (SceUID rwlock_id, unsigned int *timeout)
 Lock a rwlock with read access. More...
 
int sceKernelLockWriteRWLock (SceUID rwlock_id, unsigned int *timeout)
 Lock a rwlock with write access. More...
 
int sceKernelLockReadRWLockCB (SceUID rwlock_id, unsigned int *timeout)
 Lock a rwlock with read access and handle callbacks. More...
 
int sceKernelLockWriteRWLockCB (SceUID rwlock_id, unsigned int *timeout)
 Lock a rwlock with write access and handle callbacks. More...
 
int sceKernelTryLockReadRWLock (SceUID rwlock_id)
 Try to lock a rwlock with read access (non-blocking) More...
 
int sceKernelTryLockWriteRWLock (SceUID rwlock_id)
 Try to lock a rwlock with write access (non-blocking) More...
 
int sceKernelUnlockReadRWLock (SceUID rwlock_id)
 Try to unlock a rwlock with read access (non-blocking) More...
 
int sceKernelUnlockWriteRWLock (SceUID rwlock_id)
 Try to unlock a rwlock with write access (non-blocking) More...
 
int sceKernelGetRWLockInfo (SceUID rwlock_id, SceKernelRWLockInfo *info)
 Retrieve information about a rwlock. More...