RTEMS
Public Attributes | List of all members
SMP_sequence_lock_Control Struct Reference

SMP sequence lock control. More...

#include <smplockseq.h>

Public Attributes

Atomic_Uint sequence
 The sequence number. More...
 

Detailed Description

SMP sequence lock control.

The sequence lock offers a consistent data set for readers in the presence of at most one concurrent writer. Due to the read-modify-write operation in _SMP_sequence_lock_Read_retry() the data corresponding to the last written sequence number is observed. To allow multiple writers an additional SMP lock is necessary to serialize writes.

See also Hans-J. Boehm, HP Laboratories, "Can Seqlocks Get Along With Programming Language Memory Models?", http://www.hpl.hp.com/techreports/2012/HPL-2012-68.pdf

Definition at line 50 of file smplockseq.h.

Member Data Documentation

◆ sequence

Atomic_Uint SMP_sequence_lock_Control::sequence

The sequence number.

An odd value indicates that a write is in progress.

Definition at line 56 of file smplockseq.h.


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