RTEMS
|
SMP Lock API. More...
#include <rtems/score/cpuopts.h>
#include <rtems/score/atomic.h>
#include <rtems/score/smplockstats.h>
Go to the source code of this file.
Classes | |
struct | SMP_MCS_lock_Context |
SMP Mellor-Crummey and Scott (MCS) lock context. More... | |
struct | SMP_MCS_lock_Control |
SMP Mellor-Crummey and Scott (MCS) lock control. More... | |
Macros | |
#define | SMP_MCS_LOCK_INITIALIZER { { ATOMIC_INITIALIZER_UINTPTR( 0 ) } } |
SMP MCS lock control initializer for static initialization. | |
#define | _SMP_MCS_lock_Acquire(lock, context, stats) _SMP_MCS_lock_Do_acquire( lock, context ) |
Acquires an SMP MCS lock. More... | |
Typedefs | |
typedef struct SMP_MCS_lock_Context | SMP_MCS_lock_Context |
SMP Mellor-Crummey and Scott (MCS) lock context. | |
Functions | |
static void | _SMP_MCS_lock_Initialize (SMP_MCS_lock_Control *lock) |
Initializes the SMP MCS lock. More... | |
static void | _SMP_MCS_lock_Destroy (SMP_MCS_lock_Control *lock) |
Destroys the SMP MCS lock. More... | |
static void | _SMP_MCS_lock_Do_acquire (SMP_MCS_lock_Control *lock, SMP_MCS_lock_Context *context) |
Acquires the SMP MCS lock. More... | |
static void | _SMP_MCS_lock_Release (SMP_MCS_lock_Control *lock, SMP_MCS_lock_Context *context) |
Releases an SMP MCS lock. More... | |
SMP Lock API.
Definition in file smplockmcs.h.