PPL Logo

arch/util/PPCAtomicMutex.h File Reference

Go to the source code of this file.

Data Structures

struct  _ppc_atomic_mutex_t

Typedefs

typedef struct _ppc_atomic_mutex_t PPCAtomicMutex

Functions

PPCAtomicMutexPPCAtomicMutexInit (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 Documentation


Function Documentation

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().

Here is the call graph for this function:

static int PPCAtomicMutexTryAcquire ( PPCAtomicMutex mutex  )  [inline, static]

Try to acquire a mutex.

Parameters:
[in] mutex pointer
Returns:
0 Lock successfully acquired

1 Lock was not acquired

Definition at line 43 of file PPCAtomicMutex.h.

References _ppc_atomic_mutex_t::counter, PPC_AtomicLoadIncrementBounded(), and PPC_AtomicReadFence().

Here is the call graph for this function:

static void PPCAtomicMutexAcquire ( PPCAtomicMutex mutex  )  [inline, static]

Acquire a mutex.

Parameters:
[in] mutex pointer
Returns:
0 Lock successfully acquired

Definition at line 58 of file PPCAtomicMutex.h.

References _ppc_atomic_mutex_t::counter, PPC_AtomicLoadIncrementBounded(), and PPC_AtomicReadFence().

Here is the call graph for this function:

static void PPCAtomicMutexRelease ( PPCAtomicMutex mutex  )  [inline, static]

Release a mutex.

Parameters:
[in] mutex pointer

Definition at line 72 of file PPCAtomicMutex.h.

References _ppc_atomic_mutex_t::counter, PPC_AtomicStore(), and PPC_AtomicWriteFence().

Here is the call graph for this function:


Generated on Mon Sep 21 07:56:48 2020 for Charm++ by  doxygen 1.5.5