Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/SchedTaskArray.h @ 932:53ad3a61b40b draft
sort test (add swap())
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 31 Jul 2010 00:57:46 +0900 |
parents | 1b9418af3127 |
children | 1a4849b2acad |
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 | |
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 | |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
33 void* get_input(void*, int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
34 memaddr get_inputAddr(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
35 int get_inputSize(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
36 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
|
37 memaddr get_outputAddr(int); |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
38 int get_outputSize(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
39 memaddr get_param(int); |
800
54f0180cea0f
run16 word count ( not yet worked. )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
797
diff
changeset
|
40 int read_size(); |
695 | 41 |
899 | 42 } ; |
695 | 43 |
44 | |
45 #endif | |
46 |