-
Notifications
You must be signed in to change notification settings - Fork 7
task_builder barrier
Alexy Pellegrini edited this page May 11, 2021
·
4 revisions
nes::task_builder::barrier
(1) nes::task_checkpoint barrier();
- 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.
None.
- Returns a
nes::task_checkpoint
that will be set once all tasks before the barrier are done.
May throw a std::bad_alloc
.