A task, job that can be submitted to a nkTasks::Thread. More...
Public Member Functions | |
Task () noexcept | |
virtual | ~Task () |
virtual void | onAsyncWork ()=0 |
A task, job that can be submitted to a nkTasks::Thread.
Any external code can implement this class, enabling it to be processed by this component.
|
noexcept |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Callback for the work that the task needs to do. This will be called in the thread the task has been assigned to.
Implemented in nkTasks::LambdaSchedulerTask, and nkTasks::LambdaTask.