| 1007 | } |
| 1008 | |
| 1009 | void |
| 1010 | OutputSchedulerThread::notifyThreadAboutToQuit(RenderThreadTask* thread) |
| 1011 | { |
| 1012 | QMutexLocker l(&_imp->renderThreadsMutex); |
| 1013 | RenderThreads::iterator found = _imp->getRunnableIterator(thread); |
| 1014 | |
| 1015 | if ( found != _imp->renderThreads.end() ) { |
| 1016 | found->active = false; |
| 1017 | #ifdef NATRON_PLAYBACK_USES_THREAD_POOL |
| 1018 | _imp->renderThreads.erase(found); |
| 1019 | #endif |
| 1020 | _imp->allRenderThreadsInactiveCond.wakeOne(); |
| 1021 | |
| 1022 | #ifndef NATRON_PLAYBACK_USES_THREAD_POOL |
| 1023 | _imp->allRenderThreadsQuitCond.wakeOne(); |
| 1024 | #endif |
| 1025 | } |
| 1026 | } |
| 1027 | |
| 1028 | void |
| 1029 | OutputSchedulerThread::startRender() |
no test coverage detected