diff TaskManager/kernel/schedule/SchedTask.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 44c0bce54dcf
children 4a2c9ff53605
line wrap: on
line diff
--- a/TaskManager/kernel/schedule/SchedTask.h	Mon Oct 05 16:52:45 2009 +0900
+++ b/TaskManager/kernel/schedule/SchedTask.h	Mon Oct 05 20:29:28 2009 +0900
@@ -22,15 +22,15 @@
     /* variables */
 
     // Task を実行するスケジューラ自身
-    Scheduler *__scheduler;
+    Scheduler *scheduler;
     
     // 現在スケジューラが実行している TaskList と、このタスクに対応する Task
-    TaskListPtr __list;
-    TaskPtr __task;
+    TaskListPtr list;
+    TaskPtr task;
 
     // read/write 用の ListData
-    ListDataPtr __inListData;
-    ListDataPtr __outListData;
+    ListDataPtr inListData;
+    ListDataPtr outListData;
 
     /**
      * read データ、write 用のバッファ
@@ -38,24 +38,24 @@
      * writebuf にデータを描き込んでおくと、
      * タスク登録時に設定した出力先に書き込む
      */
-    void *__readbuf;
-    void *__writebuf;
+    void *readbuf;
+    void *writebuf;
 
     // Task の、Tasklist での位置。(task = &list[cur_index-1])
-    int __cur_index;
+    int cur_index;
 
     // タスク内で生成されたタスクのグループ
-    TaskGroup *__taskGroup;
+    TaskGroup *taskGroup;
 
     // このタスク内で生成されたタスクの数
-    int __renew_flag;
+    int renew_flag;
 
     // このタスクが SPE 内で生成されたタスクか否か 1: Yes, 0: No
-    int __flag_renewTask;
+    int flag_renewTask;
 
     // タスクがメインメモリ側で生成されたものか、
     // SPE で生成されたものかによって、データの扱いが変わってくる。
-    // そのために if (__flag_renewTask) を連発するのはよくないので
+    // そのために if (flag_renewTask) を連発するのはよくないので
     // 関数ポインタで持っておく
     void (SchedTask::*ex_init)();
     void (SchedTask::*ex_read)();
@@ -78,7 +78,7 @@
 
     /**
      * PPE で生成されたタスクに対する
-     * __init__, read,exec,write,next の付属(?)処理
+     * init, read,exec,write,next の付属(?)処理
      */
     void ex_init_normal();
     void ex_read_normal();
@@ -88,7 +88,7 @@
 
     /**
      * SPE で生成されたタスクに対する
-     * __inti__, ead,exec,write,next の付属(?)処理
+     * inti, ead,exec,write,next の付属(?)処理
      */
     void ex_init_renew();
     void ex_read_renew();
@@ -99,8 +99,8 @@
 public:
     /* functions */
 
-    void __setRenew();
-    void __init__(TaskListPtr _list, TaskPtr _task, int index,
+    void setRenew();
+    void init(TaskListPtr _list, TaskPtr _task, int index,
                   ListDataPtr rbuf, ListDataPtr wbuf, Scheduler* sc);
 
     //---  User API ---
@@ -136,7 +136,7 @@
 
     void *allocate(int size);
     void free_(void *p) {
-	__scheduler->free_(p);
+	scheduler->free_(p);
     }
 
     void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask);
@@ -149,11 +149,11 @@
      */
 
     void* get_input(int index) {
-      return get_input(__readbuf, index);
+      return get_input(readbuf, index);
     }
 
     void* get_output(int index) {
-      return get_output(__writebuf, index);
+      return get_output(writebuf, index);
     }
 
     /* system call */