SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <remotedataqueue.h>
Inherits QObject.
Signals | |
void | dataBlockEnqueued () |
Public Member Functions | |
RemoteDataQueue (QObject *parent=NULL) | |
~RemoteDataQueue () | |
void | push (RemoteDataBlock *dataBlock, bool emitSignal=true) |
Push daa block onto queue. More... | |
RemoteDataBlock * | pop () |
Pop message from queue. More... | |
int | size () |
Returns queue size. More... | |
void | clear () |
Empty queue. More... | |
Private Attributes | |
QMutex | m_lock |
QQueue< RemoteDataBlock * > | m_queue |
Definition at line 36 of file remotedataqueue.h.
RemoteDataQueue::RemoteDataQueue | ( | QObject * | parent = NULL | ) |
Definition at line 30 of file remotedataqueue.cpp.
RemoteDataQueue::~RemoteDataQueue | ( | ) |
Definition at line 37 of file remotedataqueue.cpp.
References pop().
void RemoteDataQueue::clear | ( | ) |
|
signal |
RemoteDataBlock * RemoteDataQueue::pop | ( | ) |
Pop message from queue.
Definition at line 63 of file remotedataqueue.cpp.
References m_lock, and m_queue.
Referenced by RemoteSource::handleData(), and ~RemoteDataQueue().
void RemoteDataQueue::push | ( | RemoteDataBlock * | dataBlock, |
bool | emitSignal = true |
||
) |
Push daa block onto queue.
Definition at line 48 of file remotedataqueue.cpp.
References dataBlockEnqueued(), m_lock, and m_queue.
Referenced by RemoteSourceThread::readPendingDatagrams().
int RemoteDataQueue::size | ( | ) |
Returns queue size.
Definition at line 77 of file remotedataqueue.cpp.
References m_lock, and m_queue.
|
private |
|
private |