view TaskManager/kernel/schedule/SchedNop2Ready.cc @ 1124:c43f49400c22 draft

add mail profile
author yutaka@localhost.localdomain
date Fri, 11 Feb 2011 20:39:24 +0900
parents 29355ae40e6c
children 801d57ae1e29
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__);

}

void
SchedNop2Ready::write(void)
{
    __debug("[SchedNop2Ready:%s]\n", __FUNCTION__);

#ifdef MAIL_QUEUE
    scheduler->mail_write_finish_list((memaddr)MY_SPE_STATUS_READY);
#else
    scheduler->mail_write((memaddr)MY_SPE_STATUS_READY);
#endif


}

SchedTaskBase*
SchedNop2Ready::next(Scheduler *scheduler,SchedTaskBase *p)
{
    __debug("[SchedNop2Ready:%s]\n", __FUNCTION__);


    return new SchedNop();
    
}