You are here

Add new comment

Still seems to get stuck with this version..however it does exit immediately now if I add this dirty hack:

 while (m_bRunState && writePeakFile()) {
    m_mutex.unlock(); this->sleep(0); m_mutex.lock(); // give setRunState a chance to run
}

Thanks!