Go to the source code of this file.
Data Structures | |
struct | _ppc_atomic_mutex_t |
Typedefs | |
typedef struct _ppc_atomic_mutex_t | PPCAtomicMutex |
Functions | |
PPCAtomicMutex * | PPCAtomicMutexInit (void *atomic_mem, size_t atomic_size) |
static int | PPCAtomicMutexTryAcquire (PPCAtomicMutex *mutex) |
Try to acquire a mutex. | |
static void | PPCAtomicMutexAcquire (PPCAtomicMutex *mutex) |
Acquire a mutex. | |
static void | PPCAtomicMutexRelease (PPCAtomicMutex *mutex) |
Release a mutex. |
typedef struct _ppc_atomic_mutex_t PPCAtomicMutex |
PPCAtomicMutex* PPCAtomicMutexInit | ( | void * | atomic_mem, | |
size_t | atomic_size | |||
) |
Definition at line 23 of file PPCAtomicMutex.h.
References assert, _ppc_atomic_mutex_t::bound, _ppc_atomic_mutex_t::counter, and PPC_AtomicStore().
static int PPCAtomicMutexTryAcquire | ( | PPCAtomicMutex * | mutex | ) | [inline, static] |
Try to acquire a mutex.
[in] | mutex | pointer |
1 Lock was not acquired
Definition at line 43 of file PPCAtomicMutex.h.
References _ppc_atomic_mutex_t::counter, PPC_AtomicLoadIncrementBounded(), and PPC_AtomicReadFence().
static void PPCAtomicMutexAcquire | ( | PPCAtomicMutex * | mutex | ) | [inline, static] |
Acquire a mutex.
[in] | mutex | pointer |
Definition at line 58 of file PPCAtomicMutex.h.
References _ppc_atomic_mutex_t::counter, PPC_AtomicLoadIncrementBounded(), and PPC_AtomicReadFence().
static void PPCAtomicMutexRelease | ( | PPCAtomicMutex * | mutex | ) | [inline, static] |
Release a mutex.
[in] | mutex | pointer |
Definition at line 72 of file PPCAtomicMutex.h.
References _ppc_atomic_mutex_t::counter, PPC_AtomicStore(), and PPC_AtomicWriteFence().