11 int Fibonacci(
int n) {
17 tg.
Run([&]{x=Fibonacci(n-1);});
18 tg.
Run([&]{y=Fibonacci(n-2);});
24 void mt302_TTaskGroupNested()
29 cout <<
"Fibonacci(33) = " << Fibonacci(33) << endl;
void Wait()
Wait until all submitted items of work are completed.
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT's implicit multi-threading for all objects and methods that provide an internal paralleli...
A class to manage the asynchronous execution of work items.
void Run(const std::function< void(void)> &closure)
Add to the group an item of work which will be ran asynchronously.