Mercurial > hg > Game > Cerium
view TaskManager/kernel/schedule/SchedTaskArray.h @ 698:72b2da99e875 draft
no compile error for Task Array
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 13 Dec 2009 20:14:18 +0900 |
parents | 29bd0882272a |
children | 8ece2ac85149 |
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: /* constructor */ SchedTaskArray(SchedTaskBase *savedTask_, Task *task_, Task *array_); virtual ~SchedTaskArray(); BASE_NEW_DELETE(SchedTaskArray); SchedTaskBase *savedTask; Task *array; private: /* variables */ TaskPtr task; void *readbuf; void *writebuf; /* 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); char* get_outputAddr(int); int get_outputSize(int); memaddr get_param(int); }; #endif