Thread‐enabled index manager for a fixed‐size circular buffer.
Synopsis
Declared in <bdlcc_fixedqueueindexmanager.h>
class FixedQueueIndexManager;
Description
This class implements a circular buffer of atomic state variables. These are intended to synchronize access to another (non‐atomic) indexed data structure so that the other data structure can be used as a thread‐enabled fixed‐size queue.
Enums
Name |
Description |
Capacity‐related constants for this index manager. |
Member Functions
Name |
Description |
|
Create an index manager for a circular buffer having the specified maximum |
|
Destroy this object. |
Release the specified |
|
Return the maximum number of items that may be stored in the queue. |
|
Mark the specified |
|
Mark the specified |
|
Mark the queue as disabled. Future calls to |
|
Mark the queue as enabled. |
|
Return |
|
Return a snapshot of the number of items in the queue. |
|
Print a formatted string describing the current state of this object to the specified |
|
Reserve the next available index from which to dequeue an element. |
|
Reserve a pop index for clearing cells up to a push reservation. |
|
Reserve the next available index at which to enqueue an element. |
|
|
Declare that this type uses a |
Static Member Functions
Name |
Description |
Return the signed circular difference of two values modulo a bound. |
|
Return the number of representable generations for a circular buffer of the specified |
Created with MrDocs