42
|
1 #ifndef INCLUDED_SCHED_TASKLIST
|
|
2 #define INCLUDED_SCHED_TASKLIST
|
|
3
|
307
|
4 #include "base.h"
|
|
5 #include "Scheduler.h"
|
|
6 #include "SchedTaskBase.h"
|
42
|
7
|
|
8 #include "error.h"
|
|
9
|
|
10 class SchedTaskList : public SchedTaskBase {
|
|
11 public:
|
|
12 /* constructor */
|
109
|
13 SchedTaskList(unsigned int addr, Scheduler *sched);
|
|
14
|
|
15 BASE_NEW_DELETE(SchedTaskList);
|
42
|
16
|
|
17 /* variables */
|
|
18 unsigned int params_addr;
|
|
19 TaskListPtr list;
|
109
|
20 Scheduler *scheduler;
|
|
21
|
|
22 int flag_renewTaskList;
|
42
|
23
|
|
24 /* functions */
|
|
25 SchedTaskBase* next(Scheduler *, SchedTaskBase *);
|
|
26
|
|
27 /* override functions */
|
|
28 void read(void);
|
|
29
|
|
30 #ifdef DEBUG
|
|
31 void exec(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); }
|
|
32 void write(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); }
|
|
33 #endif
|
|
34
|
|
35 };
|
|
36
|
184
|
37 const int SCHED_TASKLIST_NORMAL = 0;
|
|
38 const int SCHED_TASKLIST_RENEW = 1;
|
|
39
|
302
|
40 extern SchedTaskList* createSchedTaskList(uint32, Scheduler*, int);
|
|
41
|
42
|
42 #endif
|
184
|
43
|