FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

// A simple example to capture the following task dependencies. // // TaskA---->TaskB---->TaskD // TaskA---->TaskC---->TaskD #include // the only include you need int main(){ tf::Taskflow taskflow ("Error 1: no source"); auto E = taskflow.emplace([](){}).name("E"); auto C = taskflow.emplace([](){return ::rand()%2; }).name("C"); auto D = taskflow.emplace([](){}).name("D"); auto D_aux = taskflow.emplace([](){}).name("D_aux"); auto F = taskflow.emplace([](){}).name("F"); E.precede(D); C.precede(D_aux, F); D_aux.precede(D); taskflow.dump(std::cout); //tf::Taskflow taskflow1("taskflow1"); //tf::Taskflow taskflow2("taskflow2"); //auto [A, B] = taskflow1.emplace( // [] () { std::cout

Back | FazBrowse Home | New Git URL