API Documentation
Public Member Functions | List of all members
nkTasks::SchedulerTask Class Referenceabstract

A task compatible with the Scheduler, adding a synchronization point. More...

Inheritance diagram for nkTasks::SchedulerTask:
nkTasks::Task nkTasks::LambdaSchedulerTask

Public Member Functions

 SchedulerTask () noexcept
 
virtual ~SchedulerTask ()
 
virtual void onSync ()=0
 
- Public Member Functions inherited from nkTasks::Task
 Task () noexcept
 
virtual ~Task ()
 
virtual void onAsyncWork ()=0
 

Detailed Description

A task compatible with the Scheduler, adding a synchronization point.

Constructor & Destructor Documentation

◆ SchedulerTask()

nkTasks::SchedulerTask::SchedulerTask ( )
noexcept

Constructor.

◆ ~SchedulerTask()

virtual nkTasks::SchedulerTask::~SchedulerTask ( )
virtual

Destructor.

Member Function Documentation

◆ onSync()

virtual void nkTasks::SchedulerTask::onSync ( )
pure virtual

Method called during synchronization, after the task's asynchronous work has been done. The call happens during the call to Scheduler::tick when a task is marked as ready.

Implemented in nkTasks::LambdaSchedulerTask.


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