Mercurial > hg > Members > kono > Cerium
comparison TaskManager/kernel/schedule/SchedTaskList.h @ 708:56487849ea2d
cleean up SchedTasks.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Dec 2009 10:49:30 +0900 |
parents | 60aa3f241b10 |
children | 4c12f679a0fa |
comparison
equal
deleted
inserted
replaced
707:cfca6511aac5 | 708:56487849ea2d |
---|---|
1 #ifndef INCLUDED_SCHED_TASKLIST | 1 #ifndef INCLUDED_SCHED_TASKLIST |
2 #define INCLUDED_SCHED_TASKLIST | 2 #define INCLUDED_SCHED_TASKLIST |
3 | 3 |
4 #include "base.h" | 4 #include "base.h" |
5 #include "Scheduler.h" | 5 #include "Scheduler.h" |
6 #include "SchedTaskBase.h" | 6 #include "SchedTask.h" |
7 | 7 |
8 #include "error.h" | 8 #include "error.h" |
9 | 9 |
10 class SchedTaskList : public SchedTaskBase { | 10 class SchedTaskList : public SchedTask { |
11 public: | 11 public: |
12 /* constructor */ | 12 /* constructor */ |
13 SchedTaskList(memaddr addr, Scheduler *sched); | 13 SchedTaskList(memaddr addr, Scheduler *sched); |
14 | 14 |
15 BASE_NEW_DELETE(SchedTaskList); | 15 BASE_NEW_DELETE(SchedTaskList); |
16 | 16 |
17 /* variables */ | 17 /* variables */ |
18 memaddr params_addr; | 18 memaddr params_addr; |
19 TaskListPtr list; | |
20 Scheduler *scheduler; | |
21 | 19 |
22 /* functions */ | |
23 SchedTaskBase* next(Scheduler *, SchedTaskBase *); | |
24 | |
25 /* override functions */ | 20 /* override functions */ |
26 void read(void); | 21 void read(); |
22 void exec(); | |
23 void write(); | |
27 | 24 |
28 #ifdef DEBUG | |
29 void exec(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); } | |
30 void write(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); } | |
31 #endif | |
32 | 25 |
33 }; | 26 }; |
34 | 27 |
35 extern SchedTaskList* createSchedTaskList(memaddr, Scheduler*, int); | |
36 | 28 |
37 #endif | 29 #endif |
38 | 30 |