-
Notifications
You must be signed in to change notification settings - Fork 7
task_builder fence
Alexy Pellegrini edited this page May 11, 2021
·
1 revision
nes::task_builder::fence
(1) [[nodiscard]] nes::task_fence fence();
- Pushes a fence in the thread pool. A fence is a execution dependency between all tasks pushed before it and any point of the program, i.e. preventing the execution of the tasks pushed after it until it is signaled.
None.
- Returns a
nes::task_fence
that needs to be signaled to enable the task list to pass through it.
- This function is
[[nodiscard]]
because if the fence is discarded, the task list will always be deadlocked.
May throw a std::bad_alloc
.