|
Wildmeshing Toolkit
|
A task of this group, queued on the pool. Move-only tasks are fine. More...
Public Member Functions | |
| template<typename G > | |
| task_job (task_group &group, G &&fn) | |
| void | run () noexcept override |
| Runs the task and destroys its state. Never throws. | |
| void | finish () noexcept override |
Private Attributes | |
| task_group & | m_group |
| std::optional< Fn > | m_fn |
A task of this group, queued on the pool. Move-only tasks are fine.
|
inlineoverridevirtualnoexcept |
Reports the task finished. Called after run(), once the worker that ran it is idle again. Never throws.
Implements wmtk::threading::detail::job.
|
inlineoverridevirtualnoexcept |
Runs the task and destroys its state. Never throws.
Implements wmtk::threading::detail::job.