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

Method handleBlockingTask

Engine/GenericSchedulerThreadWatcher.cpp:202–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void
203GenericSchedulerThreadWatcher::handleBlockingTask(int taskID)
204{
205 BlockingTaskEnum task = (BlockingTaskEnum)taskID;
206
207 switch (task) {
208 case eBlockingTaskWaitForAbort:
209 _thread->abortThreadedTask();
210 _thread->waitForAbortToComplete_not_main_thread();
211 break;
212
213 case eBlockingTaskWaitForQuitAllowRestart:
214 case eBlockingTaskWaitForQuitDisallowRestart:
215 _thread->quitThread(task == eBlockingTaskWaitForQuitAllowRestart);
216 _thread->waitForThreadToQuit_not_main_thread();
217 break;
218 }
219}
220
221void
222RenderEngineWatcher::handleBlockingTask(int taskID)

Callers

nothing calls this directly

Calls 11

abortThreadedTaskMethod · 0.80
quitEngineMethod · 0.80
quitThreadMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected