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

Method waitForThreadToQuitQueued_main_thread

Engine/GenericSchedulerThread.cpp:240–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void
241GenericSchedulerThread::waitForThreadToQuitQueued_main_thread(bool allowRestart)
242{
243 assert( QThread::currentThread() == qApp->thread() );
244 _imp->blockingOperationWatcher.reset( new GenericSchedulerThreadWatcher(this) );
245 QObject::connect( _imp->blockingOperationWatcher.get(), SIGNAL(taskFinished(int,WatcherCallerArgsPtr)), this, SLOT(onWatcherTaskFinishedEmitted()) );
246 GenericSchedulerThreadWatcher::BlockingTaskEnum task = allowRestart ? GenericSchedulerThreadWatcher::eBlockingTaskWaitForQuitAllowRestart : GenericSchedulerThreadWatcher::eBlockingTaskWaitForQuitDisallowRestart;
247 _imp->blockingOperationWatcher->scheduleBlockingTask(task);
248}
249
250bool
251GenericSchedulerThread::waitForThreadToQuit_enforce_blocking()

Callers

nothing calls this directly

Calls 3

scheduleBlockingTaskMethod · 0.80
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected