mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-10 18:43:28 -05:00
Remove uneeded unlocks of QMutexLocker
The mutex will get unlocked anyway when falling out of scope.
This commit is contained in:
parent
2b0bcb0d09
commit
1f9c7efcab
@ -207,8 +207,6 @@ bool AudioCATSISO::startTx()
|
|||||||
m_outputWorkerThread->start();
|
m_outputWorkerThread->start();
|
||||||
m_txRunning = true;
|
m_txRunning = true;
|
||||||
|
|
||||||
mutexLocker.unlock();
|
|
||||||
|
|
||||||
qDebug("AudioCATSISO::startTx: started");
|
qDebug("AudioCATSISO::startTx: started");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -171,7 +171,6 @@ bool BladeRF2MIMO::startRx()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_sourceThread->startWork();
|
m_sourceThread->startWork();
|
||||||
mutexLocker.unlock();
|
|
||||||
m_runningRx = true;
|
m_runningRx = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -207,7 +206,6 @@ bool BladeRF2MIMO::startTx()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_sinkThread->startWork();
|
m_sinkThread->startWork();
|
||||||
mutexLocker.unlock();
|
|
||||||
m_runningTx = true;
|
m_runningTx = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -300,7 +300,6 @@ bool LimeSDRMIMO::startRx()
|
|||||||
m_sourceThread->setLog2Decimation(m_settings.m_log2SoftDecim);
|
m_sourceThread->setLog2Decimation(m_settings.m_log2SoftDecim);
|
||||||
m_sourceThread->setIQOrder(m_settings.m_iqOrder);
|
m_sourceThread->setIQOrder(m_settings.m_iqOrder);
|
||||||
m_sourceThread->startWork();
|
m_sourceThread->startWork();
|
||||||
mutexLocker.unlock();
|
|
||||||
m_runningRx = true;
|
m_runningRx = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -374,7 +373,6 @@ bool LimeSDRMIMO::startTx()
|
|||||||
m_sinkThread->setFifo(&m_sampleMOFifo);
|
m_sinkThread->setFifo(&m_sampleMOFifo);
|
||||||
m_sinkThread->setLog2Interpolation(m_settings.m_log2SoftInterp);
|
m_sinkThread->setLog2Interpolation(m_settings.m_log2SoftInterp);
|
||||||
m_sinkThread->startWork();
|
m_sinkThread->startWork();
|
||||||
mutexLocker.unlock();
|
|
||||||
m_runningTx = true;
|
m_runningTx = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -199,7 +199,6 @@ bool PlutoSDRMIMO::startRx()
|
|||||||
|
|
||||||
m_plutoRxBuffer = m_plutoParams->getBox()->createRxBuffer(PlutoSDRMIMOSettings::m_plutoSDRBlockSizeSamples, false);
|
m_plutoRxBuffer = m_plutoParams->getBox()->createRxBuffer(PlutoSDRMIMOSettings::m_plutoSDRBlockSizeSamples, false);
|
||||||
m_sourceThread->startWork();
|
m_sourceThread->startWork();
|
||||||
mutexLocker.unlock();
|
|
||||||
m_runningRx = true;
|
m_runningRx = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -237,7 +236,6 @@ bool PlutoSDRMIMO::startTx()
|
|||||||
|
|
||||||
m_plutoTxBuffer = m_plutoParams->getBox()->createTxBuffer(PlutoSDRMIMOSettings::m_plutoSDRBlockSizeSamples, false);
|
m_plutoTxBuffer = m_plutoParams->getBox()->createTxBuffer(PlutoSDRMIMOSettings::m_plutoSDRBlockSizeSamples, false);
|
||||||
m_sinkThread->startWork();
|
m_sinkThread->startWork();
|
||||||
mutexLocker.unlock();
|
|
||||||
m_runningTx = true;
|
m_runningTx = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -89,7 +89,6 @@ bool TestMOSync::startTx()
|
|||||||
m_sinkWorker->setFeedSpectrumIndex(m_feedSpectrumIndex);
|
m_sinkWorker->setFeedSpectrumIndex(m_feedSpectrumIndex);
|
||||||
m_sinkWorker->connectTimer(m_masterTimer);
|
m_sinkWorker->connectTimer(m_masterTimer);
|
||||||
startWorker();
|
startWorker();
|
||||||
mutexLocker.unlock();
|
|
||||||
m_runningTx = true;
|
m_runningTx = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -98,8 +98,6 @@ bool AudioOutput::start()
|
|||||||
m_workerThread->start();
|
m_workerThread->start();
|
||||||
m_running = true;
|
m_running = true;
|
||||||
|
|
||||||
mutexLocker.unlock();
|
|
||||||
|
|
||||||
qDebug("AudioOutput::start: started");
|
qDebug("AudioOutput::start: started");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -119,7 +119,6 @@ bool AudioInput::start()
|
|||||||
m_worker->startWork();
|
m_worker->startWork();
|
||||||
m_workerThread->start();
|
m_workerThread->start();
|
||||||
m_running = true;
|
m_running = true;
|
||||||
mutexLocker.unlock();
|
|
||||||
|
|
||||||
qDebug("AudioInput::start: started");
|
qDebug("AudioInput::start: started");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user