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 <remotesourcethread.h>
Inherits QThread.
Classes | |
class | MsgDataBind |
class | MsgStartStop |
Public Member Functions | |
RemoteSourceThread (RemoteDataQueue *dataQueue, QObject *parent=0) | |
~RemoteSourceThread () | |
void | startStop (bool start) |
void | dataBind (const QString &address, uint16_t port) |
Private Slots | |
void | handleInputMessages () |
void | readPendingDatagrams () |
Private Member Functions | |
void | startWork () |
void | stopWork () |
void | run () |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
volatile bool | m_running |
MessageQueue | m_inputMessageQueue |
RemoteDataQueue * | m_dataQueue |
QHostAddress | m_address |
QUdpSocket * | m_socket |
RemoteDataBlock * | m_dataBlocks [m_nbDataBlocks] |
ring buffer of data blocks indexed by frame affinity More... | |
Static Private Attributes | |
static const uint32_t | m_nbDataBlocks = 4 |
number of data blocks in the ring buffer More... | |
Definition at line 33 of file remotesourcethread.h.
RemoteSourceThread::RemoteSourceThread | ( | RemoteDataQueue * | dataQueue, |
QObject * | parent = 0 |
||
) |
Definition at line 32 of file remotesourcethread.cpp.
Referenced by RemoteSourceThread::MsgDataBind::MsgDataBind().
RemoteSourceThread::~RemoteSourceThread | ( | ) |
Definition at line 43 of file remotesourcethread.cpp.
Referenced by RemoteSourceThread::MsgDataBind::MsgDataBind().
void RemoteSourceThread::dataBind | ( | const QString & | address, |
uint16_t | port | ||
) |
Definition at line 54 of file remotesourcethread.cpp.
References RemoteSourceThread::MsgDataBind::create(), m_inputMessageQueue, and MessageQueue::push().
Referenced by RemoteSource::applySettings(), RemoteSourceThread::MsgDataBind::MsgDataBind(), and RemoteSource::start().
|
privateslot |
Definition at line 96 of file remotesourcethread.cpp.
References RemoteSourceThread::MsgDataBind::getAddress(), RemoteSourceThread::MsgDataBind::getPort(), RemoteSourceThread::MsgStartStop::getStartStop(), m_inputMessageQueue, m_socket, Message::match(), MessageQueue::pop(), readPendingDatagrams(), startWork(), and stopWork().
|
privateslot |
Definition at line 130 of file remotesourcethread.cpp.
References m_dataBlocks, m_dataQueue, RemoteRxControlBlock::m_frameIndex, RemoteRxControlBlock::m_metaRetrieved, m_nbDataBlocks, RemoteDataBlock::m_rxControlBlock, m_socket, RemoteDataBlock::m_superBlocks, and RemoteDataQueue::push().
Referenced by handleInputMessages().
|
private |
void RemoteSourceThread::startStop | ( | bool | start | ) |
Definition at line 48 of file remotesourcethread.cpp.
References RemoteSourceThread::MsgStartStop::create(), m_inputMessageQueue, and MessageQueue::push().
Referenced by RemoteSourceThread::MsgDataBind::MsgDataBind(), RemoteSource::start(), and RemoteSource::stop().
|
private |
Definition at line 60 of file remotesourcethread.cpp.
References m_running, m_socket, m_startWaiter, and m_startWaitMutex.
Referenced by handleInputMessages().
|
private |
Definition at line 71 of file remotesourcethread.cpp.
References m_running, and m_socket.
Referenced by handleInputMessages().
|
private |
Definition at line 92 of file remotesourcethread.h.
Referenced by RemoteSourceThread::MsgDataBind::getAddress().
|
private |
ring buffer of data blocks indexed by frame affinity
Definition at line 96 of file remotesourcethread.h.
Referenced by readPendingDatagrams().
|
private |
Definition at line 90 of file remotesourcethread.h.
Referenced by readPendingDatagrams().
|
private |
Definition at line 89 of file remotesourcethread.h.
Referenced by dataBind(), handleInputMessages(), and startStop().
|
staticprivate |
number of data blocks in the ring buffer
Definition at line 95 of file remotesourcethread.h.
Referenced by readPendingDatagrams().
|
private |
Definition at line 87 of file remotesourcethread.h.
Referenced by run(), startWork(), and stopWork().
|
private |
Definition at line 93 of file remotesourcethread.h.
Referenced by handleInputMessages(), readPendingDatagrams(), startWork(), and stopWork().
|
private |
Definition at line 86 of file remotesourcethread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 85 of file remotesourcethread.h.
Referenced by startWork().