|
MatLogger2
1.0.0
Library for logging of numeric data to HDF5 MAT-files, which is RT-safe and multithreaded.
|
The QueueImpl class implements the buffering strategy for a single logged variable. More...
Collaboration diagram for XBot::VariableBuffer::QueueImpl:Public Types | |
| template<typename T > | |
| using | LockfreeQueue = lf::spsc_queue< T, lf::capacity< NUM_BLOCKS >> |
Public Member Functions | |
| QueueImpl (int elem_size, int buffer_size) | |
| BufferBlock::Ptr | get_new_block () |
| Get a new block from the pool, if available. More... | |
| LockfreeQueue< BufferBlock::Ptr > & | get_read_queue () |
| Handle to the read queue. More... | |
| LockfreeQueue< BufferBlock::Ptr > & | get_write_queue () |
| Handle to the write queue. More... | |
Static Public Member Functions | |
| static int | Size () |
Static Public Attributes | |
| static const int | NUM_BLOCKS = 20 |
The QueueImpl class implements the buffering strategy for a single logged variable.
This consists of:
Definition at line 52 of file var_buffer.cpp.
| using XBot::VariableBuffer::QueueImpl::LockfreeQueue = lf::spsc_queue<T, lf::capacity<NUM_BLOCKS>> |
Definition at line 60 of file var_buffer.cpp.
|
inline |
Definition at line 62 of file var_buffer.cpp.
|
inline |
Get a new block from the pool, if available.
Definition at line 81 of file var_buffer.cpp.
|
inline |
Handle to the read queue.
Definition at line 106 of file var_buffer.cpp.
|
inline |
Handle to the write queue.
Definition at line 114 of file var_buffer.cpp.
|
inlinestatic |
Definition at line 119 of file var_buffer.cpp.
|
static |
Definition at line 57 of file var_buffer.cpp.
1.8.11