Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/SchedTaskArray.h @ 895:b662e9dd26b0 draft
add alignment of classes in SPU
width and height are automatically set in frame buffer API
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Jul 2010 17:23:49 +0900 |
parents | a5ccf763fc3f |
children | 1b9418af3127 |
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 private: | |
21 /* variables */ | |
22 | |
23 /* functions */ | |
24 Task *last(); | |
25 | |
26 // override | |
27 void read(); | |
28 void exec(); | |
29 void write(); | |
30 SchedTaskBase* next(Scheduler *, SchedTaskBase *); | |
31 | |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
32 void* get_input(void*, int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
33 memaddr get_inputAddr(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
34 int get_inputSize(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
35 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
|
36 memaddr get_outputAddr(int); |
698
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
37 int get_outputSize(int); |
72b2da99e875
no compile error for Task Array
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
695
diff
changeset
|
38 memaddr get_param(int); |
800
54f0180cea0f
run16 word count ( not yet worked. )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
797
diff
changeset
|
39 int read_size(); |
695 | 40 |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
890
diff
changeset
|
41 } __attribute__ ((aligned (DEFAULT_ALIGNMENT))); |
695 | 42 |
43 | |
44 #endif | |
45 |