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 <threadedbasebandsamplesink.h>
Inherits QObject.
Public Member Functions | |
ThreadedBasebandSampleSink (BasebandSampleSink *sampleSink, QObject *parent=0) | |
~ThreadedBasebandSampleSink () | |
const BasebandSampleSink * | getSink () const |
void | start () |
this thread start() More... | |
void | stop () |
this thread exit() and wait() More... | |
bool | handleSinkMessage (const Message &cmd) |
Send message to sink synchronously. More... | |
void | feed (SampleVector::const_iterator begin, SampleVector::const_iterator end, bool positiveOnly) |
Feed sink with samples. More... | |
QString | getSampleSinkObjectName () const |
const QThread * | getThread () const |
Protected Attributes | |
QThread * | m_thread |
The thead object. More... | |
ThreadedBasebandSampleSinkFifo * | m_threadedBasebandSampleSinkFifo |
BasebandSampleSink * | m_basebandSampleSink |
This class is a wrapper for SampleSink that runs the SampleSink object in its own thread
Definition at line 54 of file threadedbasebandsamplesink.h.
ThreadedBasebandSampleSink::ThreadedBasebandSampleSink | ( | BasebandSampleSink * | sampleSink, |
QObject * | parent = 0 |
||
) |
Definition at line 66 of file threadedbasebandsamplesink.cpp.
References BasebandSampleSink::MsgThreadedSink::create(), BasebandSampleSink::handleMessage(), m_basebandSampleSink, m_thread, and m_threadedBasebandSampleSinkFifo.
ThreadedBasebandSampleSink::~ThreadedBasebandSampleSink | ( | ) |
Definition at line 89 of file threadedbasebandsamplesink.cpp.
References m_thread, m_threadedBasebandSampleSinkFifo, and stop().
void ThreadedBasebandSampleSink::feed | ( | SampleVector::const_iterator | begin, |
SampleVector::const_iterator | end, | ||
bool | positiveOnly | ||
) |
Feed sink with samples.
Definition at line 114 of file threadedbasebandsamplesink.cpp.
References m_threadedBasebandSampleSinkFifo, and ThreadedBasebandSampleSinkFifo::writeToFifo().
QString ThreadedBasebandSampleSink::getSampleSinkObjectName | ( | ) | const |
Definition at line 127 of file threadedbasebandsamplesink.cpp.
References m_basebandSampleSink.
|
inline |
Definition at line 61 of file threadedbasebandsamplesink.h.
|
inline |
Definition at line 70 of file threadedbasebandsamplesink.h.
bool ThreadedBasebandSampleSink::handleSinkMessage | ( | const Message & | cmd | ) |
Send message to sink synchronously.
Definition at line 122 of file threadedbasebandsamplesink.cpp.
References BasebandSampleSink::handleMessage(), and m_basebandSampleSink.
Referenced by DSPDeviceSourceEngine::handleSynchronousMessages(), and DSPDeviceMIMOEngine::handleSynchronousMessages().
void ThreadedBasebandSampleSink::start | ( | ) |
this thread start()
Definition at line 99 of file threadedbasebandsamplesink.cpp.
References m_basebandSampleSink, m_thread, and BasebandSampleSink::start().
Referenced by DSPDeviceSourceEngine::handleSynchronousMessages(), and DSPDeviceMIMOEngine::handleSynchronousMessages().
void ThreadedBasebandSampleSink::stop | ( | ) |
this thread exit() and wait()
Definition at line 106 of file threadedbasebandsamplesink.cpp.
References m_basebandSampleSink, m_thread, and BasebandSampleSink::stop().
Referenced by DSPDeviceSourceEngine::handleSynchronousMessages(), DSPDeviceMIMOEngine::handleSynchronousMessages(), and ~ThreadedBasebandSampleSink().
|
protected |
Definition at line 76 of file threadedbasebandsamplesink.h.
Referenced by getSampleSinkObjectName(), handleSinkMessage(), start(), stop(), and ThreadedBasebandSampleSink().
|
protected |
The thead object.
Definition at line 74 of file threadedbasebandsamplesink.h.
Referenced by start(), stop(), ThreadedBasebandSampleSink(), and ~ThreadedBasebandSampleSink().
|
protected |
Definition at line 75 of file threadedbasebandsamplesink.h.
Referenced by feed(), ThreadedBasebandSampleSink(), and ~ThreadedBasebandSampleSink().