evio
6.0
|
Class used to create a thread which takes data-filled records from a RingBuffer-backed RecordSupply, compresses them, and places them back into the supply. More...
#include <RecordCompressor.h>
Public Member Functions | |
RecordCompressor (uint32_t thdNum, Compressor::CompressionType &type, std::shared_ptr< RecordSupply > &recordSupply) | |
Constructor. More... | |
RecordCompressor (RecordCompressor &&obj) noexcept | |
RecordCompressor & | operator= (RecordCompressor &&obj) noexcept |
~RecordCompressor () | |
void | startThread () |
Create and start a thread to execute the run() method of this class. More... | |
void | stopThread () |
Stop the thread. More... | |
void | run () |
Method to run in the thread. More... | |
Class used to create a thread which takes data-filled records from a RingBuffer-backed RecordSupply, compresses them, and places them back into the supply.
It is an interruptible thread from the boost library. This of use internally only.
|
inline |
Constructor.
thdNum | unique thread number starting at 0. |
type | type of compression to do. |
recordSupply | supply of records to compress. |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
Method to run in the thread.
Referenced by startThread().
|
inline |
|
inline |
Stop the thread.