Mercurial > hg > Game > Cerium
view TaskManager/kernel/schedule/SchedTaskArray.h @ 890:a5ccf763fc3f draft
minor fix. possible schedTaskArray overrun
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 15 Jul 2010 11:59:53 +0900 |
parents | 54f0180cea0f |
children | b662e9dd26b0 |
line wrap: on
line source
#ifndef INCLUDED_SCHED_TASK_ARRAY #define INCLUDED_SCHED_TASK_ARRAY #include "base.h" #include "Scheduler.h" #include "SchedTask.h" class SchedTaskArray : public SchedTask { public: BASE_NEW_DELETE(SchedTaskArray); /* constructor */ SchedTaskArray(Scheduler *s, SchedTaskBase *savedTask_, Task *task_, Task *array_); /* constructor for old style task */ SchedTaskArray(Scheduler *s, SchedTaskBase *savedTask_); virtual ~SchedTaskArray(); private: /* variables */ /* functions */ Task *last(); // override void read(); void exec(); void write(); SchedTaskBase* next(Scheduler *, SchedTaskBase *); void* get_input(void*, int); memaddr get_inputAddr(int); int get_inputSize(int); void* get_output(void*, int); memaddr get_outputAddr(int); int get_outputSize(int); memaddr get_param(int); int read_size(); }; #endif