RefCounter should make this unnecessary?

This commit is contained in:
Charles J. Cliffe 2015-08-13 18:10:22 -04:00
parent 1781188dfe
commit b1f20de0e9

View File

@ -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);
}