Skip to content

PoolTask

class PoolTask

Base class for pool tasks.

Functions

Name Description
~PoolTask Default destructor.
Work Main pool task execution function.
Ready Checks if the task is ready to be picked by the pool scheduler.

Function Details

Ready

virtual bool Ready()

Checks if the task is ready to be picked by the pool scheduler.

Return
true if the task is ready, false otherwise.

Work

virtual void Work() = 0

Main pool task execution function.

When this task will be picked by the pool scheduler, this method will be called to execute the task.

~PoolTask

virtual ~PoolTask() = default

Default destructor.