Remove uneeded unlocks of QMutexLocker

The mutex will get unlocked anyway when falling out of scope.
pull/2184/head
Daniele Forsi 2024-06-19 23:17:25 +02:00
rodzic 2b0bcb0d09
commit 1f9c7efcab
7 zmienionych plików z 0 dodań i 12 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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