Exemple #1
0
 ~ThermalScannerApp()
 {
   if(1) {
     sf::Lock isRunningMutexLock(isRunningMutex);
     isRunning = false;
   }
   scannerThread.wait();
   httpdThread.wait();
   wsdThread.terminate();
 }
Exemple #2
0
void FeVideoImp::stop()
{
	if ( run_video_thread )
	{
		run_video_thread = false;
		m_video_thread.wait();
	}

	FeBaseStream::stop();
}
Exemple #3
0
		/// Blocks and wait until the thread ends
		void wait()
		{
			std::cout << "Waiting for thread " << m_name << " to finish..." << std::endl;
			m_thread.wait();
		}