view include/TaskManager/SchedTaskBase.h @ 357:6602b9ba4bfd draft

fix spe/DrawSpan.{cpp, h} spe/DrawSpanRenew.cpp
author root@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 17 Jul 2009 17:13:17 +0900
parents 7f991471d43f
children
line wrap: on
line source

#ifndef INCLUDED_SCHED_TASK_BASE
#define INCLUDED_SCHED_TASK_BASE

#include "base.h"
#include "Scheduler.h"

class Scheduler;

class SchedTaskBase {
public:
    /* constructor */
    SchedTaskBase(void) {}
    virtual ~SchedTaskBase(void) {}

    BASE_NEW_DELETE(SchedTaskBase);

    // noaction in default
    virtual void load(void)  {}
    virtual void read(void)  {}
    virtual void exec(void)  {}
    virtual void write(void) {}

    /* functions */
    virtual SchedTaskBase* next(Scheduler*, SchedTaskBase*) {return 0;}
};

#endif