job scheduler works with run once and run periodic schedules. Stop logic is not fully thought through.
Dependents: JobSchedulerDemo Borsch
JobService Class Reference
JobService connects job type ID to job function. More...
#include <jobService.h>
Public Member Functions | |
Error | Register (int jobTypeID, jobFunc *job, void *context) |
Register associates jobTypeID with job and stores association. | |
JobType * | GetJob (int jobTypeID) |
GetJob returns job function based on jobTypeID. |
Detailed Description
JobService connects job type ID to job function.
Definition at line 39 of file jobService.h.
Member Function Documentation
JobType * GetJob | ( | int | jobTypeID ) |
GetJob returns job function based on jobTypeID.
- Returns:
- NULL if job is not found.
Definition at line 43 of file jobService.cpp.
Error Register | ( | int | jobTypeID, |
jobFunc * | job, | ||
void * | context | ||
) |
Register associates jobTypeID with job and stores association.
- Returns:
- Error if failed to register.
Definition at line 32 of file jobService.cpp.
Generated on Tue Jul 12 2022 23:24:04 by 1.7.2