comparison include/TaskManager/SchedTask.h @ 180:e3b7776b1420 draft

いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
author gongo@localhost.localdomain
date Mon, 22 Dec 2008 16:09:57 +0900
parents 028ffc9c0375
children 8e9ada0c1ed0
comparison
equal deleted inserted replaced
179:6e62f8cfbfe3 180:e3b7776b1420
29 ~SchedTask(void); 29 ~SchedTask(void);
30 30
31 BASE_NEW_DELETE(SchedTask); 31 BASE_NEW_DELETE(SchedTask);
32 32
33 /* variables */ 33 /* variables */
34 // ߥ塼餬 TaskList ȡΥб Task 34
35 // Task ¹Ԥ륹塼鼫
36 Scheduler *__scheduler;
37
38 // ߥ塼餬¹ԤƤ TaskList ȡΥб Task
35 TaskListPtr __list; 39 TaskListPtr __list;
36 TaskPtr __task; 40 TaskPtr __task;
37 41
38 // read/write Ѥ ListData 42 // read/write Ѥ ListData
39 ListDataPtr __inListData; 43 ListDataPtr __inListData;
40 ListDataPtr __outListData; 44 ListDataPtr __outListData;
41 45
42 // read ǡwrite ѤΥХåե 46 /**
43 // readbuf ˤ ϿꤷϥǡäƤ롣 47 * read ǡwrite ѤΥХåե
44 // writebuf ˥ǡǤȡ 48 * readbuf ˤ ϿꤷϥǡäƤ롣
45 // Ͽꤷ˽񤭹 49 * writebuf ˥ǡǤȡ
50 * Ͽꤷ˽񤭹
51 */
46 void *__readbuf; 52 void *__readbuf;
47 void *__writebuf; 53 void *__writebuf;
48 54
49 Scheduler *__scheduler; 55 // 줿Υ롼
50 TaskGroup *__taskGroup; 56 TaskGroup *__taskGroup;
51 57
52 int __renew_flag; // 줿ե饰 58 // Υ줿ο
59 int __renew_flag;
60
61 // Υ SPE 줿ݤ 1: Yes, 0: No
53 int __flag_renewTask; 62 int __flag_renewTask;
54 63
64 // ᥤ¦줿Τ
65 // SPE 줿ΤˤäơǡΰѤäƤ롣
66 // Τ if (__flag_renewTask) ϢȯΤϤ褯ʤΤ
67 // ؿݥ󥿤ǻäƤ
68 void (SchedTask::*ex_read)(void);
69 void (SchedTask::*ex_exec)(void);
70 void (SchedTask::*ex_write)(void);
71
55 /* functions */ 72 /* functions */
56 SchedTaskBase* next(Scheduler *, SchedTaskBase *);
57
58 void __init__(void); 73 void __init__(void);
59 74
60 // override 75 // override
61 void read(void); 76 void read(void);
62 void exec(void); 77 void exec(void);
63 void write(void); 78 void write(void);
79 SchedTaskBase* next(Scheduler *, SchedTaskBase *);
64 80
65 // 桼Ѿ 81 // 桼Ѿ
66 // 줾Υб򵭽Ҥ 82 // 줾Υб򵭽Ҥ
67 virtual int run(void* r, void *w) { return 0; } 83 virtual int run(void* r, void *w) { return 0; }
84
85 /**
86 * PPE 줿Ф롢read,exec,write °(?)
87 */
88 void ex_read_normal(void);
89 void ex_exec_normal(void);
90 void ex_write_normal(void);
91
92 /**
93 * SPE 줿Ф롢read,exec,write °(?)
94 */
95 void ex_read_renew(void);
96 void ex_exec_renew(void);
97 void ex_write_renew(void);
68 98
69 void* get_input(void *buff, int index); 99 void* get_input(void *buff, int index);
70 void* get_output(void *buff, int index); 100 void* get_output(void *buff, int index);
71 int get_param(int index); 101 int get_param(int index);
72 102