9 m_sampleSink(sampleSink)
27 bool positiveOnly =
false;
31 SampleVector::iterator part1begin;
32 SampleVector::iterator part1end;
33 SampleVector::iterator part2begin;
34 SampleVector::iterator part2end;
53 if(part2begin != part2end)
67 m_basebandSampleSink(sampleSink)
72 qDebug() <<
"ThreadedBasebandSampleSink::ThreadedBasebandSampleSink: " << name;
86 qDebug() <<
"ThreadedBasebandSampleSink::ThreadedBasebandSampleSink: thread: " << thread() <<
" m_thread: " <<
m_thread;
101 qDebug() <<
"ThreadedBasebandSampleSink::start";
108 qDebug() <<
"ThreadedBasebandSampleSink::stop";
QThread * m_thread
The thead object.
int size()
Returns queue size.
MessageQueue * getInputMessageQueue()
Get the queue for asynchronous inbound communication.
bool handleSinkMessage(const Message &cmd)
Send message to sink synchronously.
uint write(const quint8 *data, uint count)
void start()
this thread start()
ThreadedBasebandSampleSinkFifo * m_threadedBasebandSampleSinkFifo
virtual void feed(const SampleVector::const_iterator &begin, const SampleVector::const_iterator &end, bool positiveOnly)=0
ThreadedBasebandSampleSinkFifo(BasebandSampleSink *sampleSink, std::size_t size=1<< 18)
uint readCommit(uint count)
ThreadedBasebandSampleSink(BasebandSampleSink *sampleSink, QObject *parent=0)
BasebandSampleSink * m_basebandSampleSink
virtual bool handleMessage(const Message &cmd)=0
Processing of a message. Returns true if message has actually been processed.
~ThreadedBasebandSampleSinkFifo()
~ThreadedBasebandSampleSink()
void writeToFifo(SampleVector::const_iterator &begin, SampleVector::const_iterator &end)
BasebandSampleSink * m_sampleSink
QString getSampleSinkObjectName() const
void stop()
this thread exit() and wait()
static MsgThreadedSink * create(const QThread *thread)
uint readBegin(uint count, SampleVector::iterator *part1Begin, SampleVector::iterator *part1End, SampleVector::iterator *part2Begin, SampleVector::iterator *part2End)
SampleSinkFifo m_sampleFifo
void feed(SampleVector::const_iterator begin, SampleVector::const_iterator end, bool positiveOnly)
Feed sink with samples.