Mercurial > hg > Members > kono > Cerium
annotate TaskManager/kernel/schedule/TaskGroup.h @ 483:0b933bef0328
renew task worked. but not test_nogl...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 05 Oct 2009 20:29:28 +0900 |
parents | 46464727d825 |
children | eacbcdb23986 |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_TASK_GROUP |
2 #define INCLUDED_TASK_GROUP | |
3 | |
307 | 4 #include "base.h" |
483
0b933bef0328
renew task worked. but not test_nogl...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
480
diff
changeset
|
5 #include "Task.h" |
0b933bef0328
renew task worked. but not test_nogl...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
480
diff
changeset
|
6 #include "TaskQueue.h" |
109 | 7 |
8 class TaskGroup { | |
9 public: | |
483
0b933bef0328
renew task worked. but not test_nogl...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
480
diff
changeset
|
10 TaskGroup(): group(NULL) {} |
109 | 11 |
12 BASE_NEW_DELETE(TaskGroup); | |
13 | |
483
0b933bef0328
renew task worked. but not test_nogl...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
480
diff
changeset
|
14 // この command を引き渡すだけのためのオブジェクトらしい |
109 | 15 |
483
0b933bef0328
renew task worked. but not test_nogl...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
480
diff
changeset
|
16 unsigned int command; |
0b933bef0328
renew task worked. but not test_nogl...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
480
diff
changeset
|
17 TaskQueue *group; |
0b933bef0328
renew task worked. but not test_nogl...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
480
diff
changeset
|
18 |
109 | 19 /** |
20 * 待つ Task を追加 | |
21 */ | |
22 void add(TaskPtr add_task); | |
23 | |
24 /** | |
25 * 終了した Task を group から削除 | |
26 */ | |
27 void remove(TaskPtr delete_task); | |
28 | |
29 /** | |
30 * 空 (待つタスクが無い) の時が、この TaskGroup が持つ、 | |
31 * PPE に送るべきコマンドを返す。 | |
32 * まだ待つべきタスクがある場合は 0 を返す | |
33 */ | |
34 unsigned int status(void); | |
35 }; | |
36 | |
37 typedef TaskGroup* TaskGroupPtr; | |
38 | |
39 #endif |