~ThermalScannerApp() { if(1) { sf::Lock isRunningMutexLock(isRunningMutex); isRunning = false; } scannerThread.wait(); httpdThread.wait(); wsdThread.terminate(); }
void FeVideoImp::stop() { if ( run_video_thread ) { run_video_thread = false; m_video_thread.wait(); } FeBaseStream::stop(); }
/// Blocks and wait until the thread ends void wait() { std::cout << "Waiting for thread " << m_name << " to finish..." << std::endl; m_thread.wait(); }