31 #ifndef __SEMAPHORE_H__ 32 #define __SEMAPHORE_H__ 42 #define LWP_SEM_NULL 0xffffffff int32_t s32
32bit signed integer
Definition: gctypes.h:24
GLuint start
Definition: glext.h:6292
s32 LWP_SemInit(sem_t *sem, u32 start, u32 max)
Initializes a semaphore.
Definition: semaphore.c:88
s32 LWP_SemDestroy(sem_t sem)
Close and destroy a semaphore, release all threads and handles locked on this semaphore.
Definition: semaphore.c:140
struct sem_t_ * sem_t
typedef for the semaphore handle
Definition: semaphore.h:78
s32 LWP_SemPost(sem_t sem)
Count up semaphore counter and release lock if counter >0.
Definition: semaphore.c:129
Definition: implement.h:136
s32 LWP_SemWait(sem_t sem)
Count down semaphore counter and enter lock if counter <=0.
Definition: semaphore.c:107
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
pte_osSemaphoreHandle sem
Definition: implement.h:140