Mercurial > hg > Members > kono > Cerium
view TaskManager/kernel/schedule/SchedNop2Ready.cc @ 518:125a72948e44
....
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Oct 2009 17:57:17 +0900 |
parents | 735f76483bb2 |
children | 0decff4e867b |
line wrap: on
line source
#include <stdio.h> #include "SchedNop2Ready.h" #include "SchedTaskList.h" #include "SchedMail.h" #include "error.h" SchedNop2Ready::SchedNop2Ready(Scheduler *cn) { scheduler = cn; } void SchedNop2Ready::exec(void) { __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); //scheduler->mail_write(MY_SPE_STATUS_READY); } SchedTaskBase* SchedNop2Ready::next(Scheduler *scheduler,SchedTaskBase *p) { SchedTaskBase *nextSched; __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); // delete p; nextSched = scheduler->get_nextRenewTaskList(); // RenewTask がある if (nextSched) { return nextSched; } else { scheduler->mail_write(MY_SPE_STATUS_READY); return new SchedMail(); } }