view TaskManager/kernel/schedule/SchedNop2Ready.cc @ 1007:18a548c337cb

add mail_queue
author yutaka@localhost.localdomain
date Thu, 28 Oct 2010 08:39:19 +0900
parents 60aa3f241b10
children c67379f9d411
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__);

}

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

#if MAIL_QUEUE
    scheduler->mail_write_finish_list((memaddr)MY_SPE_STATUS_READY);
#else
    scheduler->mail_write((memaddr)MY_SPE_STATUS_READY);
#endif
    return new SchedMail();
}