Mercurial > hg > Game > Cerium
comparison TaskManager/kernel/schedule/SchedMail.cc @ 233:a314d8cd2082 draft
fix
author | gongo@localhost.localdomain |
---|---|
date | Sun, 29 Mar 2009 21:13:17 +0900 |
parents | 028ffc9c0375 |
children | 768452fab95e |
comparison
equal
deleted
inserted
replaced
231:5ae15a5d3dc5 | 233:a314d8cd2082 |
---|---|
6 SchedMail::SchedMail(Scheduler *sched) | 6 SchedMail::SchedMail(Scheduler *sched) |
7 { | 7 { |
8 scheduler = sched; | 8 scheduler = sched; |
9 } | 9 } |
10 | 10 |
11 void | |
12 SchedMail::read(void) | |
13 { | |
14 | |
15 __debug("[SchedMail:%s]\n", __FUNCTION__); | |
16 | |
17 params_addr = scheduler->mail_read(); | |
18 | |
19 __debug(" params_addr = 0x%x\n", params_addr); | |
20 } | |
21 | |
22 SchedTaskBase* | 11 SchedTaskBase* |
23 SchedMail::next(Scheduler *m, SchedTaskBase *p) | 12 SchedMail::next(Scheduler *m, SchedTaskBase *p) |
24 { | 13 { |
25 delete p; | 14 delete p; |
15 | |
16 params_addr = scheduler->mail_read(); | |
26 | 17 |
27 __debug("[SchedMail:%s]\n", __FUNCTION__); | 18 __debug("[SchedMail:%s]\n", __FUNCTION__); |
28 // if 文なくすには・・・関数ポインタ? | 19 // if 文なくすには・・・関数ポインタ? |
29 if ((int)params_addr == MY_SPE_COMMAND_EXIT) { | 20 if ((int)params_addr == MY_SPE_COMMAND_EXIT) { |
30 return new SchedExit(); | 21 return new SchedExit(); |