diff TaskManager/kernel/ppe/HTask.h @ 498:cb5ecfc5aaa3

double linked HTaskInfo/HTask
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 11 Oct 2009 11:46:41 +0900
parents 46464727d825
children eacbcdb23986
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/HTask.h	Sat Oct 10 21:05:55 2009 +0900
+++ b/TaskManager/kernel/ppe/HTask.h	Sun Oct 11 11:46:41 2009 +0900
@@ -6,7 +6,6 @@
 #include "Task.h"
 #include "TaskQueueInfo.h"
 
-class TaskQueueInfo;
 class TaskManagerImpl;
 
 /*!
@@ -29,9 +28,13 @@
     void (*post_func)(void *arg);
     void *post_arg;
     CPU_TYPE cpu_type;
-    HTask *next;             // free list 用
     TaskManagerImpl *mimpl;
 
+    Task *task;
+    HTask *waiter;
+    HTask *next;
+    HTask *prev;
+
     void spawn(void);
     void wait_for(HTask *);
     void set_cpu(CPU_TYPE type);