GitHub Viewer
// This example demonstrates how to use the corun method from a running worker
// of an executor to avoid deadlock.
#include
int main(){
const size_t N = 100;
const size_t T = 1000;
// create an executor and a taskflow
tf::Executor executor(2);
tf::Taskflow taskflow;
std::array taskflows;
std::atomic counter{0};
for(size_t n=0; n