MCPcopy Create free account
hub / github.com/RenderKit/embree / spawn

Method spawn

common/tasking/taskschedulerinternal.h:298–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296 /* spawn a new task at the top of the threads task stack */
297 template<typename Closure>
298 static __forceinline void spawn(size_t size, const Closure& closure, TaskGroupContext* context)
299 {
300 Thread* thread = TaskScheduler::thread();
301 if (likely(thread != nullptr)) thread->tasks.push_right(*thread,size,closure,context);
302 else instance()->spawn_root(closure,context,size);
303 }
304
305 /* spawn a new task at the top of the threads task stack */
306 template<typename Closure>

Callers

nothing calls this directly

Calls 2

push_rightMethod · 0.80
spawn_rootMethod · 0.80

Tested by

no test coverage detected