RTEMS
Classes | Macros | Functions
smplockseq.h File Reference

SMP Lock API. More...

#include <rtems/score/cpuopts.h>
#include <rtems/score/assert.h>
#include <rtems/score/atomic.h>

Go to the source code of this file.

Classes

struct  SMP_sequence_lock_Control
 SMP sequence lock control. More...
 

Macros

#define SMP_SEQUENCE_LOCK_INITIALIZER   { ATOMIC_INITIALIZER_UINT( 0 ) }
 SMP sequence lock control initializer for static initialization.
 

Functions

static void _SMP_sequence_lock_Initialize (SMP_sequence_lock_Control *lock)
 Initializes an SMP sequence lock. More...
 
static void _SMP_sequence_lock_Destroy (SMP_sequence_lock_Control *lock)
 Destroys an SMP sequence lock. More...
 
static unsigned int _SMP_sequence_lock_Write_begin (SMP_sequence_lock_Control *lock)
 Begins an SMP sequence lock write operation. More...
 
static void _SMP_sequence_lock_Write_end (SMP_sequence_lock_Control *lock, unsigned int seq)
 Ends an SMP sequence lock write operation. More...
 
static unsigned int _SMP_sequence_lock_Read_begin (const SMP_sequence_lock_Control *lock)
 Begins an SMP sequence lock read operation. More...
 
static bool _SMP_sequence_lock_Read_retry (SMP_sequence_lock_Control *lock, unsigned int seq)
 Ends an SMP sequence lock read operation and indicates if a retry is necessary. More...
 

Detailed Description

SMP Lock API.

Definition in file smplockseq.h.