MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / notifyThreadAboutToQuit

Method notifyThreadAboutToQuit

Engine/OutputSchedulerThread.cpp:1009–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009void
1010OutputSchedulerThread::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
1028void
1029OutputSchedulerThread::startRender()

Callers 1

runMethod · 0.80

Calls 3

getRunnableIteratorMethod · 0.80
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected