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

Method waitForEngineToQuit_main_thread

Engine/OutputSchedulerThread.cpp:3163–3171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3161}
3162
3163void
3164RenderEngine::waitForEngineToQuit_main_thread(bool allowRestart)
3165{
3166 assert( QThread::currentThread() == qApp->thread() );
3167 assert(!_imp->engineWatcher);
3168 _imp->engineWatcher.reset( new RenderEngineWatcher(this) );
3169 QObject::connect( _imp->engineWatcher.get(), SIGNAL(taskFinished(int,GenericWatcherCallerArgsPtr)), this, SLOT(onWatcherEngineQuitEmitted()) );
3170 _imp->engineWatcher->scheduleBlockingTask(allowRestart ? RenderEngineWatcher::eBlockingTaskWaitForQuitAllowRestart : RenderEngineWatcher::eBlockingTaskWaitForQuitDisallowRestart);
3171}
3172
3173void
3174RenderEngine::waitForEngineToQuit_enforce_blocking()

Callers

nothing calls this directly

Calls 3

scheduleBlockingTaskMethod · 0.80
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected