Class WorkFarm::Job

Job is the type of job handled by the WorkFarm object.

Public type

enum JobState {Waiting, Running, Canceled};
JobState describe the current state of the job. Waiting means that the job is posted but not yet running. Only in this state can the job be killed. Running means that the job is currently running. Cancel that the job as been canceled while it was waiting. It will not be run.

Constructor and destructor

Job()
virtual ~Job()

Note that the job is deleted upon completion.

Public methods

virtual void start();
start is called by the WorkFarm object to start the job.

Protected Methods

None

Public fields

None

Protected fields

None