24 auto res = fut1.get() + fut2.get();
29 void mt304_AsyncNested()
34 std::cout <<
"Fibonacci(33) = " << Fibonacci(33) << std::endl;
TFuture< typename std::result_of< typename std::decay< Function >::type(typename std::decay< Args >::type...)>::type > Async(Function &&f, Args &&... args)
Runs a function asynchronously potentially in a new thread and returns a ROOT TFuture that will hold ...
int main(int argc, char **argv)
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT's implicit multi-threading for all objects and methods that provide an internal paralleli...