Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/SchedNop2Ready.cc @ 1142:801d57ae1e29 draft
cut compile CreatePolygonTask on spe side because not enough spe memory. We have to use code loading.
And I found light error. see you tomorrow. (This version can work Mac OSX and Cell arch.)
author | yutaka@localhost.localdomain |
---|---|
date | Thu, 17 Feb 2011 05:23:34 +0900 |
parents | 29355ae40e6c |
children | a49c02dffe6f |
rev | line source |
---|---|
1142
801d57ae1e29
cut compile CreatePolygonTask on spe side because not enough spe memory. We have to use code loading.
yutaka@localhost.localdomain
parents:
1015
diff
changeset
|
1 //#include <stdio.h> |
42 | 2 #include "SchedNop2Ready.h" |
109 | 3 #include "SchedTaskList.h" |
42 | 4 #include "SchedMail.h" |
5 #include "error.h" | |
6 | |
109 | 7 SchedNop2Ready::SchedNop2Ready(Scheduler *cn) |
42 | 8 { |
109 | 9 scheduler = cn; |
42 | 10 } |
11 | |
12 void | |
13 SchedNop2Ready::exec(void) | |
14 { | |
15 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); | |
16 | |
17 } | |
18 | |
1015 | 19 void |
20 SchedNop2Ready::write(void) | |
42 | 21 { |
22 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); | |
1007 | 23 |
1009 | 24 #ifdef MAIL_QUEUE |
1007 | 25 scheduler->mail_write_finish_list((memaddr)MY_SPE_STATUS_READY); |
26 #else | |
625
94d82f2c842f
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
619
diff
changeset
|
27 scheduler->mail_write((memaddr)MY_SPE_STATUS_READY); |
1007 | 28 #endif |
1015 | 29 |
30 | |
42 | 31 } |
1015 | 32 |
33 SchedTaskBase* | |
34 SchedNop2Ready::next(Scheduler *scheduler,SchedTaskBase *p) | |
35 { | |
36 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); | |
37 | |
38 | |
39 return new SchedNop(); | |
40 | |
41 } |