Function concore::v1::wait

Function Documentation

void concore::v1::wait(task_group &grp)

Wait on all the tasks in the given group to finish executing.

The wait here is an active-wait. This will execute tasks from the task system in the hope that the tasks in the group are executed faster.

Parameters
  • grp: The task group to wait on

Using this inside active tasks is not going to block the worker thread and thus not degrade performance.

Warning

If one adds task in a group and never executes them, this function will block indefinitely.

See

spawn(), spawn_and_wait()