-
Notifications
You must be signed in to change notification settings - Fork 7
task_builder checkpoint
Alexy Pellegrini edited this page May 11, 2021
·
1 revision
nes::task_builder::checkpoint
(1) [[nodiscard]] std::task_checkpoint checkpoint();- Pushes a checkpoint in the thread pool. A checkpoint will be set once all tasks pushed before it are done. The
nes::task_checkpointcan be used to know when all tasks before the checkpoint are done.
None.
- Returns a
nes::task_checkpointthat will be set once all tasks before the checkpoint are done.
- This function is
[[nodiscard]]because a checkpoint has no effect on the execution, so unused checkpoints are just wasted resources.
May throw a std::bad_alloc.