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

Method handleBlockingTask

Engine/GenericSchedulerThreadWatcher.cpp:193–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void
194GenericSchedulerThreadWatcher::handleBlockingTask(int taskID)
195{
196 BlockingTaskEnum task = (BlockingTaskEnum)taskID;
197
198 switch (task) {
199 case eBlockingTaskWaitForAbort:
200 _thread->abortThreadedTask();
201 _thread->waitForAbortToComplete_not_main_thread();
202 break;
203
204 case eBlockingTaskWaitForQuitAllowRestart:
205 case eBlockingTaskWaitForQuitDisallowRestart:
206 _thread->quitThread(task == eBlockingTaskWaitForQuitAllowRestart);
207 _thread->waitForThreadToQuit_not_main_thread();
208 break;
209 }
210}
211
212void
213RenderEngineWatcher::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