kopia lustrzana https://github.com/f4exb/sdrangel
				
				
				
			Remove uneeded unlocks of QMutexLocker
The mutex will get unlocked anyway when falling out of scope.pull/2184/head
							rodzic
							
								
									2b0bcb0d09
								
							
						
					
					
						commit
						1f9c7efcab
					
				| 
						 | 
				
			
			@ -207,8 +207,6 @@ bool AudioCATSISO::startTx()
 | 
			
		|||
    m_outputWorkerThread->start();
 | 
			
		||||
    m_txRunning = true;
 | 
			
		||||
 | 
			
		||||
	mutexLocker.unlock();
 | 
			
		||||
 | 
			
		||||
	qDebug("AudioCATSISO::startTx: started");
 | 
			
		||||
 | 
			
		||||
	return true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -98,8 +98,6 @@ bool AudioOutput::start()
 | 
			
		|||
    m_workerThread->start();
 | 
			
		||||
    m_running = true;
 | 
			
		||||
 | 
			
		||||
	mutexLocker.unlock();
 | 
			
		||||
 | 
			
		||||
	qDebug("AudioOutput::start: started");
 | 
			
		||||
 | 
			
		||||
	return true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -119,7 +119,6 @@ bool AudioInput::start()
 | 
			
		|||
    m_worker->startWork();
 | 
			
		||||
    m_workerThread->start();
 | 
			
		||||
    m_running = true;
 | 
			
		||||
	mutexLocker.unlock();
 | 
			
		||||
 | 
			
		||||
    qDebug("AudioInput::start: started");
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue