41 #define LWP_MUTEX_NULL 0xffffffff u32 mutex_t
Definition: mutex.h:51
int32_t s32
32bit signed integer
Definition: gctypes.h:24
int mutex_t
typedef for the mutex handle
Definition: lock.c:6
s32 LWP_MutexDestroy(mutex_t mutex)
Close mutex lock, release all threads and handles locked on this mutex.
Definition: mutex.c:122
s32 LWP_MutexLock(mutex_t mutex)
Enter the mutex lock.
Definition: mutex.c:138
s32 LWP_MutexUnlock(mutex_t mutex)
Release the mutex lock and let other threads process further on this mutex.
Definition: mutex.c:148
s32 LWP_MutexTryLock(mutex_t mutex)
Try to enter the mutex lock.
Definition: mutex.c:143
static sys_sem mutex
Definition: memp.c:120
s32 LWP_MutexInit(mutex_t *mutex, bool use_recursive)
Initializes a mutex lock.
Definition: mutex.c:101
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19