![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Ring buffer status area. More...
#include <ring_buffer>
Public Member Functions | |
| unsigned | version () const |
| Get the version of the ring buffer items. | |
| size_t | alignment () const |
| Get the stable alignment of the ring buffer status members. | |
| size_t | mask () const |
| Get the item mask. | |
| size_t | items () const |
| Get the number of items. | |
Ring buffer status area.
The ring buffer status area contains run-time configuration information of the ring buffer, most notably the current atomic generation counter (i.e. the last sequence number allocated to an item).
This structure is only written by the producers, it is read-only for the consumers.
| SEQUENCE_TYPE | Numerical type for storing sequence and generation counters. Must be suitable for atomic access. |
Definition at line 128 of file ring_buffer.
|
inline |
Get the stable alignment of the ring buffer status members.
This is relevant for the _mask and _tail members.
Definition at line 155 of file ring_buffer.
|
inline |
Get the version of the ring buffer items.
The semantics of the version number is defined by the user.
Definition at line 145 of file ring_buffer.