![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Ring buffer slot. More...
#include <ring_buffer>
Static Public Member Functions | |
| static size_t | size (size_t const items) |
| Get the size (in bytes) of the given count of items. | |
Ring buffer slot.
The ring buffer slot encapsulates one ring buffer item and makes sure that the item is aligned to the nearest larger power-of-two of its size.
Another purpose of this class is to abstract away the access to the sequence number of the item.
| ITEM_TYPE | Actual ring buffer item type. |
| GENERATION_PTR | Class member pointer to the member that contains the sequence number within the item. The member needs to be suitable for an atomic reference. |
Definition at line 207 of file ring_buffer.
|
inlinestatic |
Get the size (in bytes) of the given count of items.
| items | Count of items. |
Definition at line 224 of file ring_buffer.