| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/ModuleWorks/taskflow/task_isolation/examples/runtime.cpp | [Back] [Original] |
// This program demonstrates how to use a runtime task to forcefully
// schedule an active task that would never be scheduled.
#include
int main() {
tf::Taskflow taskflow("Runtime Tasking");
tf::Executor executor;
tf::Task A, B, C, D;
std::tie(A, B, C, D) = taskflow.emplace(
[] () { return 0; },
[&C] (tf::Runtime& rt) { // C must be captured by reference
std::cout
| Web Proxy Viewer | New URL | Original Page |