Shows how to run items of work asynchronously with a TTaskGroup.
{
printf(
"Running workItem0...\n");
}
{
tg.Run([]() {
printf(
"Running workItem1...\n"); });
printf(
"Running something in the \"main\" thread\n");
printf(
"All work completed.\n");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A class to manage the asynchronous execution of work items.
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT's implicit multi-threading for all objects and methods that provide an internal paralleli...
- Date
- August 2017
- Author
- Danilo Piparo
Definition in file mt301_TTaskGroupSimple.C.