Mercurial > hg > Game > Cerium
view TaskManager/Cell/spe/SchedMail.cc @ 275:237a75ab7a9b draft
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 04 Jun 2009 00:12:47 +0900 |
parents | ec6729fab209 |
children |
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 ((int)params_addr == MY_SPE_COMMAND_EXIT) { return new SchedExit(); } else { return new SchedTaskList(params_addr, m); } }