RetroArch
|
#include <stdlib.h>
#include <errno.h>
#include <asm.h>
#include "lwp_sema.h"
#include "lwp_objmgr.h"
#include "lwp_config.h"
#include "semaphore.h"
Classes | |
struct | _sema_st |
Macros | |
#define | LWP_OBJTYPE_SEM 4 |
#define | LWP_CHECK_SEM(hndl) |
Typedefs | |
typedef struct _sema_st | sema_st |
Functions | |
void | __lwp_sema_init () |
static __inline__ sema_st * | __lwp_sema_open (sem_t sem) |
static __inline__ void | __lwp_sema_free (sema_st *sema) |
static sema_st * | __lwp_sema_allocate () |
s32 | LWP_SemInit (sem_t *sem, u32 start, u32 max) |
Initializes a semaphore. More... | |
s32 | LWP_SemWait (sem_t sem) |
Count down semaphore counter and enter lock if counter <=0. More... | |
s32 | LWP_SemPost (sem_t sem) |
Count up semaphore counter and release lock if counter >0. More... | |
s32 | LWP_SemDestroy (sem_t sem) |
Close and destroy a semaphore, release all threads and handles locked on this semaphore. More... | |
Variables | |
lwp_objinfo | _lwp_sema_objects |
#define LWP_CHECK_SEM | ( | hndl | ) |
#define LWP_OBJTYPE_SEM 4 |
|
static |
Close and destroy a semaphore, release all threads and handles locked on this semaphore.
[in] | sem | handle to the sem_t structure. |
Initializes a semaphore.
[out] | sem | pointer to a sem_t handle. |
[in] | start | start count of the semaphore |
[in] | max | maximum count of the semaphore |
Count up semaphore counter and release lock if counter >0.
[in] | sem | handle to the sem_t structure. |
Count down semaphore counter and enter lock if counter <=0.
[in] | sem | handle to the sem_t structure. |
lwp_objinfo _lwp_sema_objects |