Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/SchedTaskArray.h @ 699:8ece2ac85149 draft
....
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 13 Dec 2009 22:46:15 +0900 |
parents | 72b2da99e875 |
children | 0c8ad8d99656 |
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: | |
11 /* constructor */ | |
699 | 12 SchedTaskArray(Scheduler *s, SchedTaskBase *savedTask_, Task *task_, Task *array_); |
695 | 13 virtual ~SchedTaskArray(); |
14 | |
15 BASE_NEW_DELETE(SchedTaskArray); | |
16 | |
17 SchedTaskBase *savedTask; | |
18 Task *array; | |
19 | |
20 private: | |
21 /* variables */ | |
22 | |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
23 TaskPtr task; |
695 | 24 void *readbuf; |
25 void *writebuf; | |
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); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
40 char* get_outputAddr(int); |
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 |