Aether
SDL2 based UI Framework for NX
|
Abstract class representing a job for the ThreadPool. It is designed to be inherited to define the job. More...
#include <ThreadPool.Job.hpp>
Public Member Functions | |
Job () | |
Constructs a new default Job object. | |
bool | run () |
Runs the job. Does nothing if the job has already been completed. More... | |
~Job () | |
Destroys the Job object. | |
Protected Member Functions | |
virtual void | work ()=0 |
The work to perform. This must be defined by derived classes to actually perform the work. Invoked by run() if needed. More... | |
Abstract class representing a job for the ThreadPool. It is designed to be inherited to define the job.
bool Aether::ThreadPool::Job::run | ( | ) |
Runs the job. Does nothing if the job has already been completed.
|
protectedpure virtual |
The work to perform. This must be defined by derived classes to actually perform the work. Invoked by run() if needed.