Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/SchedTaskArray.h @ 1214:44d9b08519e0 draft
sched task fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 22 Jul 2011 15:32:41 +0900 |
parents | 3b3b535baa51 |
children |
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 */ |
970
1a4849b2acad
change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents:
932
diff
changeset
|
14 SchedTaskArray(Scheduler *s, SchedTaskBase *savedTask_, Task *task_, Task *array_, int tag); |
703 | 15 /* constructor for old style task */ |
16 SchedTaskArray(Scheduler *s, SchedTaskBase *savedTask_); | |
17 | |
695 | 18 virtual ~SchedTaskArray(); |
19 | |
932
53ad3a61b40b
sort test (add swap())
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
899
diff
changeset
|
20 |
695 | 21 private: |
22 /* variables */ | |
23 | |
24 /* functions */ | |
25 Task *last(); | |
26 | |
27 // override | |
28 void read(); | |
29 void exec(); | |
30 void write(); | |
31 SchedTaskBase* next(Scheduler *, SchedTaskBase *); | |
32 | |
1099 | 33 void setup_outputData(); |
34 | |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
35 void* get_input(void*, int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
36 memaddr get_inputAddr(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
37 int get_inputSize(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
38 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
|
39 memaddr get_outputAddr(int); |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
40 int get_outputSize(int); |
1099 | 41 void set_outputSize(int index, int size); |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
42 memaddr get_param(int); |
800
54f0180cea0f
run16 word count ( not yet worked. )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
797
diff
changeset
|
43 int read_size(); |
695 | 44 |
899 | 45 } ; |
695 | 46 |
47 | |
48 #endif | |
49 |