RTEMS
Public Attributes | List of all members
SMP_MCS_lock_Context Struct Reference

SMP Mellor-Crummey and Scott (MCS) lock context. More...

#include <smplockmcs.h>

Public Attributes

union {
   Atomic_Uintptr   atomic
 The next context as an atomic unsigned integer pointer value.
 
   struct SMP_MCS_lock_Context *   normal
 The next context as a normal pointer. More...
 
next
 The next context on the queue if it exists.
 
Atomic_Uint locked
 Indicates if the lock is owned or free in case a previous context exits on the queue. More...
 

Detailed Description

SMP Mellor-Crummey and Scott (MCS) lock context.

Definition at line 40 of file smplockmcs.h.

Member Data Documentation

◆ locked

Atomic_Uint SMP_MCS_lock_Context::locked

Indicates if the lock is owned or free in case a previous context exits on the queue.

This field is initialized to a non-zero value. The previous lock owner (which is the owner of the previous context) will set it to zero during its lock release.

Definition at line 66 of file smplockmcs.h.

◆ normal

struct SMP_MCS_lock_Context* SMP_MCS_lock_Context::normal

The next context as a normal pointer.

Only provided for debugging purposes.

Definition at line 55 of file smplockmcs.h.


The documentation for this struct was generated from the following file: