Wildmeshing Toolkit
Loading...
Searching...
No Matches
Public Member Functions | List of all members
wmtk::threading::detail::job Struct Referenceabstract

#include <task_group.hpp>

Inheritance diagram for wmtk::threading::detail::job:
wmtk::threading::task_group::task_job< Fn >

Public Member Functions

virtual void run () noexcept=0
 Runs the task and destroys its state. Never throws.
 
virtual void finish () noexcept=0
 

Detailed Description

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.

Member Function Documentation

◆ finish()

virtual void wmtk::threading::detail::job::finish ( )
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 >.

◆ run()

virtual void wmtk::threading::detail::job::run ( )
pure virtualnoexcept

Runs the task and destroys its state. Never throws.

Implemented in wmtk::threading::task_group::task_job< Fn >.


The documentation for this struct was generated from the following file: