13   printf(
"Running workItem0...\n");
 
   16void mt301_TTaskGroupSimple()
 
   25   tg.
Run([]() { printf(
"Running workItem1...\n"); });
 
   27   printf(
"Running something in the \"main\" thread\n");
 
   32   printf(
"All work completed.\n");
 
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.
 
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...