mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-23 12:18: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()) {
|
||||
DemodulatorThreadIQData *visualDataOut = visualDataBuffers.getBuffer();
|
||||
visualDataOut->busy_rw.lock();
|
||||
visualDataOut->setRefCount(1);
|
||||
|
||||
if (num_vis_samples > dataOut.size()) {
|
||||
@ -138,7 +137,6 @@ void SDRPostThread::run() {
|
||||
visualDataOut->sampleRate = data_in->sampleRate;
|
||||
visualDataOut->data.assign(dataOut.begin(), dataOut.begin() + num_vis_samples);
|
||||
|
||||
visualDataOut->busy_rw.unlock();
|
||||
iqVisualQueue->push(visualDataOut);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user