Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/schedule/SchedMail.cc @ 403:e2f29e912d0b draft
clean up and add more info on task_list
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 23 Sep 2009 12:04:29 +0900 |
parents | 768452fab95e |
children | 3bc98f6d31ff |
rev | line source |
---|---|
42 | 1 #include "SchedMail.h" |
2 #include "SchedTaskList.h" | |
3 #include "SchedExit.h" | |
4 #include "error.h" | |
5 | |
6 SchedTaskBase* | |
403
e2f29e912d0b
clean up and add more info on task_list
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
298
diff
changeset
|
7 SchedMail::next(Scheduler *scheduler, SchedTaskBase *p) |
42 | 8 { |
9 delete p; | |
233 | 10 |
11 params_addr = scheduler->mail_read(); | |
42 | 12 |
13 __debug("[SchedMail:%s]\n", __FUNCTION__); | |
298 | 14 // if 文なくすには・・・関数ポインタ? |
42 | 15 if ((int)params_addr == MY_SPE_COMMAND_EXIT) { |
16 return new SchedExit(); | |
17 } else { | |
403
e2f29e912d0b
clean up and add more info on task_list
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
298
diff
changeset
|
18 return new SchedTaskList(params_addr, scheduler); |
42 | 19 } |
20 } |