示例#1
0
文件: main.cpp 项目: Deco/SEP-CTs
 ~ThermalScannerApp()
 {
   if(1) {
     sf::Lock isRunningMutexLock(isRunningMutex);
     isRunning = false;
   }
   scannerThread.wait();
   httpdThread.wait();
   wsdThread.terminate();
 }
示例#2
0
void FeVideoImp::stop()
{
	if ( run_video_thread )
	{
		run_video_thread = false;
		m_video_thread.wait();
	}

	FeBaseStream::stop();
}
示例#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();
		}