1
0
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:
Daniele Forsi 2024-06-19 23:17:25 +02:00
parent 2b0bcb0d09
commit 1f9c7efcab
7 changed files with 0 additions and 12 deletions

View File

@ -207,8 +207,6 @@ bool AudioCATSISO::startTx()
m_outputWorkerThread->start();
m_txRunning = true;
mutexLocker.unlock();
qDebug("AudioCATSISO::startTx: started");
return true;

View File

@ -171,7 +171,6 @@ bool BladeRF2MIMO::startRx()
}
m_sourceThread->startWork();
mutexLocker.unlock();
m_runningRx = true;
return true;
@ -207,7 +206,6 @@ bool BladeRF2MIMO::startTx()
}
m_sinkThread->startWork();
mutexLocker.unlock();
m_runningTx = true;
return true;

View File

@ -300,7 +300,6 @@ bool LimeSDRMIMO::startRx()
m_sourceThread->setLog2Decimation(m_settings.m_log2SoftDecim);
m_sourceThread->setIQOrder(m_settings.m_iqOrder);
m_sourceThread->startWork();
mutexLocker.unlock();
m_runningRx = true;
return true;
@ -374,7 +373,6 @@ bool LimeSDRMIMO::startTx()
m_sinkThread->setFifo(&m_sampleMOFifo);
m_sinkThread->setLog2Interpolation(m_settings.m_log2SoftInterp);
m_sinkThread->startWork();
mutexLocker.unlock();
m_runningTx = true;
return true;

View File

@ -199,7 +199,6 @@ bool PlutoSDRMIMO::startRx()
m_plutoRxBuffer = m_plutoParams->getBox()->createRxBuffer(PlutoSDRMIMOSettings::m_plutoSDRBlockSizeSamples, false);
m_sourceThread->startWork();
mutexLocker.unlock();
m_runningRx = true;
return true;
@ -237,7 +236,6 @@ bool PlutoSDRMIMO::startTx()
m_plutoTxBuffer = m_plutoParams->getBox()->createTxBuffer(PlutoSDRMIMOSettings::m_plutoSDRBlockSizeSamples, false);
m_sinkThread->startWork();
mutexLocker.unlock();
m_runningTx = true;
return true;

View File

@ -89,7 +89,6 @@ bool TestMOSync::startTx()
m_sinkWorker->setFeedSpectrumIndex(m_feedSpectrumIndex);
m_sinkWorker->connectTimer(m_masterTimer);
startWorker();
mutexLocker.unlock();
m_runningTx = true;
return true;

View File

@ -98,8 +98,6 @@ bool AudioOutput::start()
m_workerThread->start();
m_running = true;
mutexLocker.unlock();
qDebug("AudioOutput::start: started");
return true;

View File

@ -119,7 +119,6 @@ bool AudioInput::start()
m_worker->startWork();
m_workerThread->start();
m_running = true;
mutexLocker.unlock();
qDebug("AudioInput::start: started");