Shows how to run items of work asynchronously with a TTaskGroup.
void workItem0()
{
printf("Running workItem0...\n");
}
void mt301_TTaskGroupSimple()
{
tg.
Run([]() { printf(
"Running workItem1...\n"); });
printf("Running something in the \"main\" thread\n");
printf("All work completed.\n");
}
- Date
- August 2017
- Author
- Danilo Piparo
Definition in file mt301_TTaskGroupSimple.C.