Go to the source code of this file.
Data Structures | |
struct | _ppc_atomic_t |
Typedefs | |
typedef uint64_t | ppc_atomic_type_t |
typedef struct _ppc_atomic_t | ppc_atomic_t |
Functions | |
static void | PPC_AtomicCounterAllocate (void **atomic_mem, size_t atomic_memsize) |
static ppc_atomic_type_t | PPC_AtomicLoadReserved (volatile ppc_atomic_t *ptr) |
static int | PPC_AtomicStoreConditional (volatile ppc_atomic_t *ptr, ppc_atomic_type_t val) |
static ppc_atomic_type_t | PPC_AtomicLoadIncrementBounded (volatile ppc_atomic_t *counter) |
static void | PPC_AtomicStore (volatile ppc_atomic_t *counter, ppc_atomic_type_t val) |
static void | PPC_AtomicReadFence (void) |
static void | PPC_AtomicWriteFence (void) |
typedef uint64_t ppc_atomic_type_t |
Definition at line 18 of file default_ppcq.h.
typedef struct _ppc_atomic_t ppc_atomic_t |
static void PPC_AtomicCounterAllocate | ( | void ** | atomic_mem, | |
size_t | atomic_memsize | |||
) | [inline, static] |
Definition at line 27 of file default_ppcq.h.
References posix_memalign().
static ppc_atomic_type_t PPC_AtomicLoadReserved | ( | volatile ppc_atomic_t * | ptr | ) | [inline, static] |
Definition at line 34 of file default_ppcq.h.
References _ppc_atomic_t::val.
Referenced by PPC_AtomicLoadIncrementBounded().
static int PPC_AtomicStoreConditional | ( | volatile ppc_atomic_t * | ptr, | |
ppc_atomic_type_t | val | |||
) | [inline, static] |
Definition at line 45 of file default_ppcq.h.
References _ppc_atomic_t::val.
Referenced by PPC_AtomicLoadIncrementBounded().
static ppc_atomic_type_t PPC_AtomicLoadIncrementBounded | ( | volatile ppc_atomic_t * | counter | ) | [inline, static] |
Definition at line 58 of file default_ppcq.h.
References PPC_AtomicLoadReserved(), PPC_AtomicStoreConditional(), and _ppc_atomic_t::val.
Referenced by PPCAtomicEnqueue(), PPCAtomicMutexAcquire(), and PPCAtomicMutexTryAcquire().
static void PPC_AtomicStore | ( | volatile ppc_atomic_t * | counter, | |
ppc_atomic_type_t | val | |||
) | [inline, static] |
Definition at line 75 of file default_ppcq.h.
References _ppc_atomic_t::val.
Referenced by PPCAtomicDequeue(), PPCAtomicMutexInit(), PPCAtomicMutexRelease(), and PPCAtomicQueueInit().
static void PPC_AtomicReadFence | ( | void | ) | [inline, static] |
Definition at line 82 of file default_ppcq.h.
Referenced by PPCAtomicDequeue(), PPCAtomicMutexAcquire(), and PPCAtomicMutexTryAcquire().
static void PPC_AtomicWriteFence | ( | void | ) | [inline, static] |
Definition at line 89 of file default_ppcq.h.
Referenced by PPCAtomicEnqueue(), and PPCAtomicMutexRelease().