mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-27 06:08:37 -05:00
RefCounter should make this unnecessary?
This commit is contained in:
parent
1781188dfe
commit
b1f20de0e9
@ -120,7 +120,6 @@ void SDRPostThread::run() {
|
|||||||
|
|
||||||
if (iqVisualQueue != NULL && iqVisualQueue->empty()) {
|
if (iqVisualQueue != NULL && iqVisualQueue->empty()) {
|
||||||
DemodulatorThreadIQData *visualDataOut = visualDataBuffers.getBuffer();
|
DemodulatorThreadIQData *visualDataOut = visualDataBuffers.getBuffer();
|
||||||
visualDataOut->busy_rw.lock();
|
|
||||||
visualDataOut->setRefCount(1);
|
visualDataOut->setRefCount(1);
|
||||||
|
|
||||||
if (num_vis_samples > dataOut.size()) {
|
if (num_vis_samples > dataOut.size()) {
|
||||||
@ -138,7 +137,6 @@ void SDRPostThread::run() {
|
|||||||
visualDataOut->sampleRate = data_in->sampleRate;
|
visualDataOut->sampleRate = data_in->sampleRate;
|
||||||
visualDataOut->data.assign(dataOut.begin(), dataOut.begin() + num_vis_samples);
|
visualDataOut->data.assign(dataOut.begin(), dataOut.begin() + num_vis_samples);
|
||||||
|
|
||||||
visualDataOut->busy_rw.unlock();
|
|
||||||
iqVisualQueue->push(visualDataOut);
|
iqVisualQueue->push(visualDataOut);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user