Schedule a continuation task using its scheduler
| 412 | |
| 413 | // Schedule a continuation task using its scheduler |
| 414 | static void schedule(task_base* parent, task_ptr t) |
| 415 | { |
| 416 | void* sched = static_cast<task_func<Sched, Func, Result>*>(t.get())->sched; |
| 417 | parent->run_continuation(*static_cast<Sched*>(sched), std::move(t)); |
| 418 | } |
| 419 | |
| 420 | // Free the function |
| 421 | ~task_func() |