Mercurial > hg > Members > kono > Cerium
diff TaskManager/kernel/schedule/SchedNop2Ready.cc @ 42:aa11038dbdc1
*** empty log message ***
author | gongo |
---|---|
date | Thu, 14 Feb 2008 18:27:37 +0900 |
parents | |
children | 5c194c71eca8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/kernel/schedule/SchedNop2Ready.cc Thu Feb 14 18:27:37 2008 +0900 @@ -0,0 +1,27 @@ +#include <stdio.h> +#include "SchedNop2Ready.h" +#include "SchedMail.h" +#include "error.h" + +SchedNop2Ready::SchedNop2Ready(DmaManager *cn) +{ + connector = cn; +} + +void +SchedNop2Ready::exec(void) +{ + __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); + + connector->mail_write(MY_SPE_STATUS_READY); +} + +SchedTaskBase* +SchedNop2Ready::next(Scheduler *m, SchedTaskBase *p) +{ + __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); + + delete p; + + return new SchedMail(connector); +}