Jobclass represents a single job that runs in one of the Thread Manager's worker threads.
class Job : public ListElement<Job>
||Returns a boolean value indicating whether a job has finished executing.|
||Returns a boolean value indicating whether a job has been cancelled.|
||Returns the worker thread index for a job.|
Job(ExecuteCallback *execCallback, void *cookie = nullptr);
||The main execution function for the job.|
||A pointer to user-defined data that is passed to the job's execution function.|
Jobclass is used to encapsulate the execution function and data for a single job. Jobs are queued for execution by one of the Thread Manager's worker threads by calling the
The function specified by the
execCallbackparameter should have the following signature.
The first parameter passed to the execution function is a pointer to the
typedef void ExecuteCallback(Job *, void *);
Jobobject itself, and the second parameter is the
cookieparameter that was passed to the
||Used internally by the Thread Manager.|