Skip to content

task_builder barrier

Alexy Pellegrini edited this page May 11, 2021 · 4 revisions

Functions

(1) nes::task_checkpoint barrier();
  1. Pushes a barrier in the thread pool. A barrier is a execution dependency between all tasks pushed before it and the tasks pushed after it, i.e. preventing the execution of the tasks pushed after it until all tasks push before it are done. The nes::task_checkpoint can be used to know when all tasks before the barrier are done.

Parameters

None.

Return value

  1. Returns a nes::task_checkpoint that will be set once all tasks before the barrier are done.

Exceptions

May throw a std::bad_alloc.

Clone this wiki locally