Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
tcPeriodicJobThread Class Reference

#include <PeriodicJobThread.h>

Inheritance diagram for tcPeriodicJobThread:
Collaboration diagram for tcPeriodicJobThread:

Public Types

typedef std::list< tcJob * > tlJobList
 

Public Member Functions

 tcPeriodicJobThread ()
 
 ~tcPeriodicJobThread ()
 
void * run ()
 
int addJob (tcJob *apJob)
 Add a job. More...
 
int removeJob (tcJob *apJob)
 Remove a job. More...
 
void stop ()
 terminate job thread processing More...
 
void printScheduledJobs ()
 print list of jobs More...
 
- Public Member Functions inherited from tcThread
 tcThread ()
 
virtual ~tcThread ()
 
void join ()
 
virtual void start ()
 

Additional Inherited Members

- Static Public Attributes inherited from tcThread
static const int HIGHEST_PRIORITY = -2
 
static const int HIGH_PRIORITY = -1
 
static const int NORMAL_PRIORITY = 0
 
static const int LOW_PRIORITY = 1
 
static const int LOWEST_PRIORITY = 2
 
- Protected Member Functions inherited from tcThread
void setPriority (int anRelativePriority)
 
- Protected Attributes inherited from tcThread
bool mbKillThread
 

Member Typedef Documentation

◆ tlJobList

Constructor & Destructor Documentation

◆ tcPeriodicJobThread()

tcPeriodicJobThread::tcPeriodicJobThread ( )

◆ ~tcPeriodicJobThread()

tcPeriodicJobThread::~tcPeriodicJobThread ( )

Member Function Documentation

◆ addJob()

int tcPeriodicJobThread::addJob ( tcJob apJob)

Add a job.

add a job to the list

Parameters
apJob- The job to add
Returns
0 on success, -1 if job already added

◆ printScheduledJobs()

void tcPeriodicJobThread::printScheduledJobs ( )

print list of jobs

◆ removeJob()

int tcPeriodicJobThread::removeJob ( tcJob apJob)

Remove a job.

remove a job from the list

◆ run()

void * tcPeriodicJobThread::run ( )
virtual

Subclassers implement the run loop of the thread in this method.

Returns
the return value when the Thread exits.

Thread run

Implements tcThread.

◆ stop()

void tcPeriodicJobThread::stop ( )
virtual

terminate job thread processing

Reimplemented from tcThread.


The documentation for this class was generated from the following files: