view TaskManager/kernel/schedule/SchedNop2Ready.h @ 1546:61164c687b29 draft

fix GpuScheduler flip
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 05 Feb 2013 13:15:46 +0900
parents d585a7614cd5
children f82bb7393c4d
line wrap: on
line source

#ifndef INCLUDED_SCHED_NOP2READY
#define INCLUDED_SCHED_NOP2READY

#include "base.h"
#include "Scheduler.h"
#include "SchedTaskBase.h"
#include "SchedNop.h"

#include "error.h"

class SchedNop2Ready : public SchedNop {
public:
    /* constructor */
    SchedNop2Ready(Scheduler*);

    BASE_NEW_DELETE(SchedNop2Ready);

    /* variables */
    Scheduler* scheduler;

    /* functions */
    void exec(void);
    void write(void);
    SchedTaskBase* next(Scheduler *, SchedTaskBase *);
    const char * name() { return "Nop2" ; };


#if DEBUG
    void read(void)  { __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); }
    //void write(void) { __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); }
#endif
};

#endif