Mercurial > hg > Game > Cerium
view TaskManager/kernel/schedule/SchedMail.cc @ 366:0251d06467de draft
rename include/TaskManager/* and add memory
author | aaa |
---|---|
date | Mon, 27 Jul 2009 15:51:18 +0900 |
parents | 768452fab95e |
children | e2f29e912d0b |
line wrap: on
line source
#include "SchedMail.h" #include "SchedTaskList.h" #include "SchedExit.h" #include "error.h" SchedMail::SchedMail(Scheduler *sched) { scheduler = sched; } SchedTaskBase* SchedMail::next(Scheduler *m, SchedTaskBase *p) { delete p; params_addr = scheduler->mail_read(); __debug("[SchedMail:%s]\n", __FUNCTION__); // if 文なくすには・・・関数ポインタ? if ((int)params_addr == MY_SPE_COMMAND_EXIT) { return new SchedExit(); } else { return new SchedTaskList(params_addr, m); } }