|
Wildmeshing Toolkit
|
#include <task_group.hpp>
Public Member Functions | |
| virtual void | run () noexcept=0 |
| Runs the task and destroys its state. Never throws. | |
| virtual void | finish () noexcept=0 |
What the pool queues: one task, type-erased. Unlike std::function it does not require the task to be copyable – std::thread, which ran task_group's tasks before the pool, did not either.
|
pure virtualnoexcept |
Reports the task finished. Called after run(), once the worker that ran it is idle again. Never throws.
Implemented in wmtk::threading::task_group::task_job< Fn >.
|
pure virtualnoexcept |
Runs the task and destroys its state. Never throws.
Implemented in wmtk::threading::task_group::task_job< Fn >.