32 m_maxSize(MinimumMaxSize),
43 while ((data =
pop()) != 0)
45 qDebug(
"RemoteDataReadQueue::~RemoteDataReadQueue: data block was still in queue");
54 qWarning(
"RemoteDataReadQueue::push: queue is full");
98 qDebug(
"RemoteDataReadQueue::readSample: initial pop new block: queue size: %u",
length());
114 uint32_t samplesPerBlock = RemoteNbBytesPerBlock / sampleSize;
139 qWarning(
"RemoteDataReadQueue::readSample: try to pop new block but queue is empty");
uint32_t size() const
Returns queue size (max length)
RemoteSuperBlock * m_superBlocks
uint32_t m_sampleCount
use a counter capped below 2^31 as it is going to be converted to an int in the web interface ...
void readSample(Sample &s, bool scaleForTx=false)
Read sample from queue possibly scaling to Tx size.
bool m_full
full condition was hit
void setSize(uint32_t size)
Sets the queue size (max length)
uint32_t length() const
Returns queue length.
RemoteDataBlock * m_dataBlock
void convertDataToSample(Sample &s, uint32_t blockIndex, uint32_t sampleIndex, bool scaleForTx)
RemoteDataBlock * pop()
Pop block from the queue.
void push(RemoteDataBlock *dataBlock)
push block on the queue
QQueue< RemoteDataBlock * > m_dataReadQueue
static const uint32_t MinimumMaxSize