diff TaskManager/kernel/ppe/HTask.h @ 941:0c11c2fd7e63

add no_auto_free flag on HTask
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 31 Jul 2010 17:50:38 +0900
parents bed529c55eda
children a9c7784e5dae
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/HTask.h	Sat Jul 31 16:44:10 2010 +0900
+++ b/TaskManager/kernel/ppe/HTask.h	Sat Jul 31 17:50:38 2010 +0900
@@ -41,6 +41,10 @@
     HTask *next;
     HTask *prev;
 
+    struct {
+	unsigned no_auto_free:1;        //      bit 0    auto free flag (0 .. auto, 1 manual)
+    } flag;
+
     void spawn();
     void wait_for(HTask *);
     void set_cpu(CPU_TYPE type);    
@@ -91,6 +95,10 @@
 	t->set_param_t(index, param);
     }
 
+    void no_auto_free() {
+	flag.no_auto_free = 1;
+    }
+
     void init(int cmd) {
 	next = prev = NULL;
 	waiter = NULL;
@@ -99,6 +107,7 @@
 	param_index = 0;
 	in_index = 0;
 	out_index = 0;
+	flag.no_auto_free = 0;
 	self = (memaddr) this;
 
 	post_func = NULL;