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

Method waitForEngineToQuit_main_thread

Engine/OutputSchedulerThread.cpp:3177–3185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3175}
3176
3177void
3178RenderEngine::waitForEngineToQuit_main_thread(bool allowRestart)
3179{
3180 assert( QThread::currentThread() == qApp->thread() );
3181 assert(!_imp->engineWatcher);
3182 _imp->engineWatcher.reset( new RenderEngineWatcher(this) );
3183 QObject::connect( _imp->engineWatcher.get(), SIGNAL(taskFinished(int,WatcherCallerArgsPtr)), this, SLOT(onWatcherEngineQuitEmitted()) );
3184 _imp->engineWatcher->scheduleBlockingTask(allowRestart ? RenderEngineWatcher::eBlockingTaskWaitForQuitAllowRestart : RenderEngineWatcher::eBlockingTaskWaitForQuitDisallowRestart);
3185}
3186
3187void
3188RenderEngine::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