Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/ppe/TaskList.h @ 970:1a4849b2acad draft
change pipeline and TaskArray fast
author | Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 Aug 2010 20:38:06 +0900 |
parents | 338523ff6986 |
children | 8cf62aea798f |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_TASKLIST |
2 #define INCLUDED_TASKLIST | |
3 | |
301
7f991471d43f
remove deprecated source. not work.
tkaito@localhost.localdomain
parents:
244
diff
changeset
|
4 #include "base.h" |
7f991471d43f
remove deprecated source. not work.
tkaito@localhost.localdomain
parents:
244
diff
changeset
|
5 #include "Task.h" |
109 | 6 |
7 | |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
8 #define TASK_MAX_SIZE 31 |
109 | 9 |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
10 class TaskList { // 1024 byte |
109 | 11 public: |
12 BASE_NEW_DELETE(TaskList); | |
13 | |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
14 int length; // 4 byte |
109 | 15 TaskList *next; // 4 byte |
806 | 16 TaskList *prev; // 4 byte |
17 TaskList *waiter; // 4 byte | |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
18 int dummy[4]; // 16 byte |
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
19 SimpleTask tasks[TASK_MAX_SIZE]; // 32*TASK_MAX_SIZE |
634 | 20 |
830 | 21 void init() { length = 0; waiter=this; } |
956
197b7e19a345
unified queue worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
899
diff
changeset
|
22 void initOnce() { } |
958 | 23 void freeOnce() {} |
24 | |
899 | 25 } ; |
109 | 26 |
27 typedef TaskList* TaskListPtr; | |
28 | |
29 #endif |