comparison 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
comparison
equal deleted inserted replaced
482:25947fcfe880 483:0b933bef0328
1 #ifndef INCLUDED_TASK_GROUP 1 #ifndef INCLUDED_TASK_GROUP
2 #define INCLUDED_TASK_GROUP 2 #define INCLUDED_TASK_GROUP
3 3
4 #include "base.h" 4 #include "base.h"
5 #include "TaskQueueInfo.h" 5 #include "Task.h"
6 #include "TaskQueue.h"
6 7
7 class TaskGroup { 8 class TaskGroup {
8 public: 9 public:
10 TaskGroup(): group(NULL) {}
9 11
10 BASE_NEW_DELETE(TaskGroup); 12 BASE_NEW_DELETE(TaskGroup);
11 13
14 // この command を引き渡すだけのためのオブジェクトらしい
15
12 unsigned int command; 16 unsigned int command;
13 TaskQueueInfo *group; 17 TaskQueue *group;
14 18
15 TaskGroup(): group() {
16 group = new TaskQueueInfo();
17 }
18
19 /** 19 /**
20 * 待つ Task を追加 20 * 待つ Task を追加
21 */ 21 */
22 void add(TaskPtr add_task); 22 void add(TaskPtr add_task);
23 23