Multi-process safe, Circular Buffer class.
More...
#include <circularBuffer.h>
|
| CircularBuffer (size_t bufferSize=0) |
| Construct a new circular buffer. More...
|
|
void | setBufferSize (size_t bufferSize) |
|
void | write (const T &value) |
| Write a value to the circular buffer. More...
|
|
T | read (void) |
| Blocking Read a value from the circular buffer. More...
|
|
bool | readNB (T *result) |
| Non-Blocking Read a value from the circular buffer. More...
|
|
template<typename T>
class SST::Core::Interprocess::CircularBuffer< T >
Multi-process safe, Circular Buffer class.
- Template Parameters
-
T | Type of data item to store in the buffer |
A | Memory Allocator type to use |
Construct a new circular buffer.
- Parameters
-
bufferSize | Number of elements in the buffer |
allocator | Memory allocator to use for constructing the buffer |
Blocking Read a value from the circular buffer.
- Returns
- The next item in the queue to be read
Non-Blocking Read a value from the circular buffer.
- Parameters
-
result | Pointer to an item which will be filled in if possible |
- Returns
- True if an item was available, False otherwisw
Write a value to the circular buffer.
- Parameters
-
The documentation for this class was generated from the following file: