void MasterTimer::stopAll() { m_stopAll = true; /* Wait until all functions have been stopped */ while (runningFunctions() > 0) msleep(10); m_stopAll = false; }
void MasterTimer::stopAllFunctions() { m_stopAllFunctions = true; /* Wait until all functions have been stopped */ while (runningFunctions() > 0) { #if defined(WIN32) || defined(Q_OS_WIN) Sleep(10); #else usleep(10000); #endif } m_stopAllFunctions = false; }
void MasterTimer::stopAllFunctions() { m_stopAllFunctions = true; /* Wait until all functions have been stopped */ while (runningFunctions() > 0) { #ifdef WIN32 Sleep(10); #else usleep(10000); #endif } /* Remove all generic fader's channels */ m_functionListMutex.lock(); m_dmxSourceListMutex.lock(); fader()->removeAll(); m_dmxSourceListMutex.unlock(); m_functionListMutex.unlock(); m_stopAllFunctions = false; }
void MasterTimer::stopAllFunctions() { m_stopAllFunctions = true; /* Wait until all functions have been stopped */ while (runningFunctions() > 0) { #if defined(WIN32) || defined(Q_OS_WIN) Sleep(10); #else usleep(10000); #endif } // WARNING: the following brackets are fundamental for // the scope of this piece of code !! { /* Remove all generic fader's channels */ QMutexLocker faderLocker(&m_faderMutex); fader()->removeAll(); } m_stopAllFunctions = false; }