| 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> |
nothing calls this directly
no test coverage detected