Mercurial > hg > Game > Cerium
comparison 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 |
comparison
equal
deleted
inserted
replaced
697:4b6242d03512 | 698:72b2da99e875 |
---|---|
2 #define INCLUDED_SCHED_TASK_ARRAY | 2 #define INCLUDED_SCHED_TASK_ARRAY |
3 | 3 |
4 #include "base.h" | 4 #include "base.h" |
5 #include "Scheduler.h" | 5 #include "Scheduler.h" |
6 #include "SchedTask.h" | 6 #include "SchedTask.h" |
7 | |
7 | 8 |
8 class SchedTaskArray : public SchedTask { | 9 class SchedTaskArray : public SchedTask { |
9 public: | 10 public: |
10 /* constructor */ | 11 /* constructor */ |
11 SchedTaskArray(SchedTaskBase *savedTask_, Task *task_, Task *array_); | 12 SchedTaskArray(SchedTaskBase *savedTask_, Task *task_, Task *array_); |
17 Task *array; | 18 Task *array; |
18 | 19 |
19 private: | 20 private: |
20 /* variables */ | 21 /* variables */ |
21 | 22 |
23 TaskPtr task; | |
22 void *readbuf; | 24 void *readbuf; |
23 void *writebuf; | 25 void *writebuf; |
24 | 26 |
25 TaskPtr task; | |
26 /* functions */ | 27 /* functions */ |
27 Task *last(); | 28 Task *last(); |
28 | 29 |
29 // override | 30 // override |
30 void read(); | 31 void read(); |
31 void exec(); | 32 void exec(); |
32 void write(); | 33 void write(); |
33 SchedTaskBase* next(Scheduler *, SchedTaskBase *); | 34 SchedTaskBase* next(Scheduler *, SchedTaskBase *); |
34 | 35 |
36 void* get_input(void*, int); | |
37 memaddr get_inputAddr(int); | |
38 int get_inputSize(int); | |
39 void* get_output(void*, int); | |
40 char* get_outputAddr(int); | |
41 int get_outputSize(int); | |
42 memaddr get_param(int); | |
35 | 43 |
36 }; | 44 }; |
37 | 45 |
38 | 46 |
39 #endif | 47 #endif |