QtThreadSched.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __QT_SCHED_THREAD__
00028 #define __QT_SCHED_THREAD__
00029
00030 #ifdef MIP_HOST_APPLE
00031 #include <applePatch.h>
00032 #endif
00033
00034 #include <QThread>
00035 #include <Scheduler.h>
00036
00039 class QtThreadSched : public QThread{
00040 Q_OBJECT
00041
00042 private:
00043 Scheduler *_scheduler;
00044 unsigned long int _cycles;
00045 Time _minCycleDuration;
00046
00047 protected:
00048 void run();
00049 public:
00052 QtThreadSched(const ResourcePlates& resourcePlates,const TaskPlates& taskPlates,int pargc, const char* pargv[],
00053 unsigned long int cycles,Time minCycleDuration);
00054
00057 bool getStatus(SchedStatus &status);
00058
00061 bool getResourcePointers(ResourcePointers &rp);
00062 };
00063
00064
00065 #endif
00066
00067
00068