Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
JobManager.h
Go to the documentation of this file.
1 /*
2  * JobManager.h
3  *
4  * Created on: Jun 25, 2015
5  * Author: iskander
6  */
7 
8 #ifndef JOBMANAGER_H_
9 #define JOBMANAGER_H_
10 #include <list>
11 
12 
14 class tcJob;
15 
16 class tcJobManager {
17 public:
19  static tcJobManager* getInstance();
21  static void destroy();
22  int addJob(tcJob* apJob);
23  int removeJob(tcJob* apJob);
24  void abort();
25 
26 private:
27  tcJobManager();
28  virtual ~tcJobManager();
29  static tcJobManager* spMe;
30  tcPeriodicJobThread* mpThread;
31 };
32 
33 
34 #endif /* JOBMANAGER_H_ */
tcJobManager::abort
void abort()
Definition: JobManager.cpp:33
tcJobManager::removeJob
int removeJob(tcJob *apJob)
Definition: JobManager.cpp:29
tcPeriodicJobThread
Definition: PeriodicJobThread.h:18
tcJobManager::getInstance
static tcJobManager * getInstance()
get the instance of the Job manager
Definition: JobManager.cpp:20
tcJobManager::destroy
static void destroy()
end the singleton... ONLY on the way out!!!
Definition: JobManager.cpp:47
tcJobManager::addJob
int addJob(tcJob *apJob)
Definition: JobManager.cpp:25
tcJobManager
Definition: JobManager.h:16
tcJob
The tcJob class is the base class for jobs that get added to the tcPeriodicJobThread.
Definition: Job.h:14