The tcJob class is the base class for jobs that get added to the tcPeriodicJobThread.
More...
#include <Job.h>
The tcJob class is the base class for jobs that get added to the tcPeriodicJobThread.
◆ teStatus
Enumerator |
---|
eeStopped | |
eeScheduled | |
eeRunning | |
eeFailed | |
◆ tcJob()
tcJob::tcJob |
( |
const char * |
apName | ) |
|
◆ ~tcJob()
◆ attachThread()
◆ detachThread()
void tcJob::detachThread |
( |
| ) |
|
remove this job from its thread (if attached)
tcJob::detachThread remove job from its work thread
◆ doExecute()
run the job
doExecute is called by the periodic thread to set up and run execute
◆ enterExecute()
void tcJob::enterExecute |
( |
| ) |
|
|
protected |
convenience function for stats
tcJob::enterExecute - called at the beginning of execute to update stats
◆ execute()
virtual int tcJob::execute |
( |
| ) |
|
|
protectedpure virtual |
◆ exitExecute()
void tcJob::exitExecute |
( |
| ) |
|
|
protected |
◆ getName()
const char* tcJob::getName |
( |
| ) |
const |
|
inline |
◆ getNextRunTimeMs()
uint64 tcJob::getNextRunTimeMs |
( |
| ) |
const |
|
virtual |
getNetRunTimeMs default implementation returns last run time + period. if never run, just return current time (in ms).
- Returns
- desired time of next execute.
◆ getPeriodMs()
virtual int tcJob::getPeriodMs |
( |
| ) |
const |
|
inlinevirtual |
Get the period of this job (called by thread!)
◆ status()
virtual teStatus tcJob::status |
( |
| ) |
const |
|
inlinevirtual |
◆ timespecToMs()
uint64 tcJob::timespecToMs |
( |
const struct timespec |
arT | ) |
const |
|
inlineprotected |
◆ mcStats
◆ mnLastRunMs
◆ mnPeriodMs
◆ mpThread
The documentation for this class was generated from the following files:
- /tmp/mitycam_sdk/ARM/camera_software/src/Utility/Job.h
- /tmp/mitycam_sdk/ARM/camera_software/src/Utility/Job.cpp