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 <syncmessenger.h>
Inherits QObject.
Signals | |
void | messageSent () |
Public Member Functions | |
SyncMessenger () | |
~SyncMessenger () | |
int | sendWait (Message &message, unsigned long msPollTime=100) |
Send message and waits for its process completion. More... | |
Message * | getMessage () const |
void | storeMessage (Message &message) |
void | done (int result=0) |
Processing of the message is complete. More... | |
Protected Attributes | |
QWaitCondition | m_waitCondition |
QMutex | m_mutex |
QAtomicInt | m_complete |
Message * | m_message |
int | m_result |
This class is responsible of managing the synchronous processing of a message across threads
Definition at line 33 of file syncmessenger.h.
SyncMessenger::SyncMessenger | ( | ) |
Definition at line 22 of file syncmessenger.cpp.
SyncMessenger::~SyncMessenger | ( | ) |
Definition at line 30 of file syncmessenger.cpp.
void SyncMessenger::done | ( | int | result = 0 | ) |
Processing of the message is complete.
Definition at line 52 of file syncmessenger.cpp.
References m_complete, m_result, and m_waitCondition.
Referenced by DSPDeviceSinkEngine::handleSynchronousMessages(), DSPDeviceSourceEngine::handleSynchronousMessages(), and DSPDeviceMIMOEngine::handleSynchronousMessages().
|
inline |
Definition at line 41 of file syncmessenger.h.
Referenced by DSPDeviceSinkEngine::handleSynchronousMessages(), DSPDeviceSourceEngine::handleSynchronousMessages(), and DSPDeviceMIMOEngine::handleSynchronousMessages().
|
signal |
int SyncMessenger::sendWait | ( | Message & | message, |
unsigned long | msPollTime = 100 |
||
) |
Send message and waits for its process completion.
Definition at line 33 of file syncmessenger.cpp.
References m_complete, m_message, m_mutex, m_result, m_waitCondition, and messageSent().
Referenced by DSPDeviceMIMOEngine::addAncillarySink(), DSPDeviceMIMOEngine::addChannelSink(), DSPDeviceMIMOEngine::addChannelSource(), DSPDeviceSourceEngine::addSink(), DSPDeviceMIMOEngine::addSinkStream(), DSPDeviceMIMOEngine::addSourceStream(), DSPDeviceSinkEngine::addSpectrumSink(), DSPDeviceMIMOEngine::addSpectrumSink(), DSPDeviceSourceEngine::addThreadedSink(), DSPDeviceSinkEngine::addThreadedSource(), DSPDeviceMIMOEngine::deviceDescription(), DSPDeviceSourceEngine::errorMessage(), DSPDeviceSinkEngine::errorMessage(), DSPDeviceMIMOEngine::errorMessage(), DSPDeviceSourceEngine::initAcquisition(), DSPDeviceSinkEngine::initGeneration(), DSPDeviceMIMOEngine::initProcess(), DSPDeviceMIMOEngine::removeAncillarySink(), DSPDeviceMIMOEngine::removeChannelSink(), DSPDeviceMIMOEngine::removeChannelSource(), DSPDeviceMIMOEngine::removeLastSinkStream(), DSPDeviceMIMOEngine::removeLastSourceStream(), DSPDeviceSourceEngine::removeSink(), DSPDeviceSinkEngine::removeSpectrumSink(), DSPDeviceMIMOEngine::removeSpectrumSink(), DSPDeviceSourceEngine::removeThreadedSink(), DSPDeviceSinkEngine::removeThreadedSource(), DSPDeviceMIMOEngine::setMIMO(), DSPDeviceSinkEngine::setSink(), DSPDeviceSourceEngine::setSource(), DSPDeviceMIMOEngine::setSpectrumSinkInput(), DSPDeviceSinkEngine::sinkDeviceDescription(), DSPDeviceSourceEngine::sourceDeviceDescription(), DSPDeviceSourceEngine::startAcquisition(), DSPDeviceSinkEngine::startGeneration(), and DSPDeviceMIMOEngine::startProcess().
|
inline |
Definition at line 42 of file syncmessenger.h.
Referenced by DSPDeviceSourceEngine::stopAcquistion(), DSPDeviceSinkEngine::stopGeneration(), and DSPDeviceMIMOEngine::stopProcess().
|
protected |
Definition at line 51 of file syncmessenger.h.
Referenced by done(), and sendWait().
|
protected |
Definition at line 52 of file syncmessenger.h.
Referenced by sendWait().
|
protected |
Definition at line 50 of file syncmessenger.h.
Referenced by sendWait().
|
protected |
Definition at line 53 of file syncmessenger.h.
Referenced by done(), and sendWait().
|
protected |
Definition at line 49 of file syncmessenger.h.
Referenced by done(), and sendWait().