vitasdk
Documentation of the vitasdk
fast_mutex.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2KERN_KERNEL_THREADMGR_FAST_MUTEX_H_
8 #define _PSP2KERN_KERNEL_THREADMGR_FAST_MUTEX_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2kern/types.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct SceKernelFastMutex {
19  SceUInt8 data[0x40];
22 
23 
24 int ksceKernelInitializeFastMutex(SceKernelFastMutex *fast_mutex, const char *name, int attr, void *opt);
26 
30 
31 int ksceKernelGetFastMutexInfo(SceKernelFastMutex *fast_mutex, void *info);
32 
33 
34 /* backward compatibility */
35 
36 #define ksceKernelDeleteFastMutex(__fast_mutex__) ksceKernelFinalizeFastMutex((__fast_mutex__))
37 
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif /* _PSP2KERN_KERNEL_THREADMGR_FAST_MUTEX_H_ */
int ksceKernelLockFastMutex(SceKernelFastMutex *fast_mutex)
int ksceKernelTryLockFastMutex(SceKernelFastMutex *fast_mutex)
int ksceKernelInitializeFastMutex(SceKernelFastMutex *fast_mutex, const char *name, int attr, void *opt)
int ksceKernelFinalizeFastMutex(SceKernelFastMutex *fast_mutex)
int ksceKernelGetFastMutexInfo(SceKernelFastMutex *fast_mutex, void *info)
VITASDK_BUILD_ASSERT_EQ(0x40, SceKernelFastMutex)
SceUInt8 data[0x40]
Definition: fast_mutex.h:19
int ksceKernelUnlockFastMutex(SceKernelFastMutex *fast_mutex)
Definition: fast_mutex.h:18
uint8_t SceUInt8
Definition: types.h:36