Пример #1
0
 ~ThermalScannerApp()
 {
   if(1) {
     sf::Lock isRunningMutexLock(isRunningMutex);
     isRunning = false;
   }
   scannerThread.wait();
   httpdThread.wait();
   wsdThread.terminate();
 }
Пример #2
0
		/// Terminates the thread BUT without any warranty
		/// about the state of work data
		void terminate()
		{
			m_thread.terminate();
			m_isRunning = false;
		}