Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/SchedTaskArray.h @ 797:1db779ac0268 draft
SchedTask instance variable clean up
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 May 2010 17:57:19 +0900 |
parents | d41c62201b1e |
children | 54f0180cea0f |
rev | line source |
---|---|
695 | 1 #ifndef INCLUDED_SCHED_TASK_ARRAY |
2 #define INCLUDED_SCHED_TASK_ARRAY | |
3 | |
4 #include "base.h" | |
5 #include "Scheduler.h" | |
6 #include "SchedTask.h" | |
7 | |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
8 |
695 | 9 class SchedTaskArray : public SchedTask { |
10 public: | |
703 | 11 BASE_NEW_DELETE(SchedTaskArray); |
12 | |
695 | 13 /* constructor */ |
699 | 14 SchedTaskArray(Scheduler *s, SchedTaskBase *savedTask_, Task *task_, Task *array_); |
703 | 15 /* constructor for old style task */ |
16 SchedTaskArray(Scheduler *s, SchedTaskBase *savedTask_); | |
17 | |
695 | 18 virtual ~SchedTaskArray(); |
19 | |
20 | |
21 SchedTaskBase *savedTask; | |
22 Task *array; | |
23 | |
24 private: | |
25 /* variables */ | |
26 | |
27 /* functions */ | |
28 Task *last(); | |
29 | |
30 // override | |
31 void read(); | |
32 void exec(); | |
33 void write(); | |
34 SchedTaskBase* next(Scheduler *, SchedTaskBase *); | |
35 | |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
36 void* get_input(void*, int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
37 memaddr get_inputAddr(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
38 int get_inputSize(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
39 void* get_output(void*, int); |
706
b2b4a1243961
no compile error on Cell. Regression Test.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
703
diff
changeset
|
40 memaddr get_outputAddr(int); |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
41 int get_outputSize(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
42 memaddr get_param(int); |
695 | 43 |
44 }; | |
45 | |
46 | |
47 #endif | |
48 |