RetroArch
|
#include <stdlib.h>
#include <errno.h>
#include "asm.h"
#include "lwp_mutex.h"
#include "lwp_objmgr.h"
#include "lwp_config.h"
#include "mutex.h"
Classes | |
struct | _mutex_st |
Macros | |
#define | LWP_OBJTYPE_MUTEX 3 |
#define | LWP_CHECK_MUTEX(hndl) |
Typedefs | |
typedef struct _mutex_st | mutex_st |
Functions | |
static s32 | __lwp_mutex_locksupp (mutex_t lock, u32 timeout, u8 block) |
void | __lwp_mutex_init () |
static __inline__ mutex_st * | __lwp_mutex_open (mutex_t lock) |
static __inline__ void | __lwp_mutex_free (mutex_st *lock) |
static mutex_st * | __lwp_mutex_allocate () |
s32 | LWP_MutexInit (mutex_t *mutex, bool use_recursive) |
Initializes a mutex lock. More... | |
s32 | LWP_MutexDestroy (mutex_t mutex) |
Close mutex lock, release all threads and handles locked on this mutex. More... | |
s32 | LWP_MutexLock (mutex_t mutex) |
Enter the mutex lock. More... | |
s32 | LWP_MutexTryLock (mutex_t mutex) |
Try to enter the mutex lock. More... | |
s32 | LWP_MutexUnlock (mutex_t mutex) |
Release the mutex lock and let other threads process further on this mutex. More... | |
Variables | |
lwp_objinfo | _lwp_mutex_objects |
#define LWP_CHECK_MUTEX | ( | hndl | ) |
#define LWP_OBJTYPE_MUTEX 3 |
|
static |
Close mutex lock, release all threads and handles locked on this mutex.
[in] | mutex | handle to the mutex_t structure. |
Initializes a mutex lock.
[out] | mutex | pointer to a mutex_t handle. |
[in] | use_recursive | whether to allow the thread, whithin the same context, to enter multiple times the lock or not. |
Enter the mutex lock.
[in] | mutex | handle to the mutext_t structure. |
Try to enter the mutex lock.
[in] | mutex | handle to the mutex_t structure. |
Release the mutex lock and let other threads process further on this mutex.
[in] | mutex | handle to the mutex_t structure. |
lwp_objinfo _lwp_mutex_objects |