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