diff TaskManager/Cell/spe/SpeTaskManagerImpl.h @ 637:5530fa36d42e

not yet worked...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 19 Nov 2009 11:13:42 +0900
parents d433fc37587d
children 7405d92733a8
line wrap: on
line diff
--- a/TaskManager/Cell/spe/SpeTaskManagerImpl.h	Wed Nov 18 19:09:40 2009 +0900
+++ b/TaskManager/Cell/spe/SpeTaskManagerImpl.h	Thu Nov 19 11:13:42 2009 +0900
@@ -1,41 +1,28 @@
-#ifndef INCLUDED_TASK_MANAGER_IMPL
-#define INCLUDED_TASK_MANAGER_IMPL
+#ifndef INCLUDED_SPE_TASK_MANAGER_IMPL
+#define INCLUDED_SPE_TASK_MANAGER_IMPL
 
-#include "MailManager.h"
-#include "ListData.h"
-#include "TaskListInfo.h"
-#include "TaskQueueInfo.h"
-#include "HTaskInfo.h"
-class Scheduler;
-class MemList;
-
-
-class TaskManagerImpl {
-public:
+#include "TaskManagerImpl.h"
+#include "MainScheduler.h"
+#include "Scheduler.h"
 
-    BASE_NEW_DELETE(TaskManagerImpl);
-
-    /* variables */
-    SchedTask *schedTaskManager;
-    Scheduler *scheduler;
-
+class SpeTaskManagerImpl : public TaskManagerImpl {
+public:
     /* constructor */
-    TaskManagerImpl() { }
-
-    ~TaskManagerImpl() { }
+    SpeTaskManagerImpl() ;
+    ~SpeTaskManagerImpl();
 
-    // user
+    /* functions */
+    // call by system
+    void init();
+    void run();
     HTaskPtr create_task(int cmd);
-    HTaskPtr create_task(int cmd, memaddr rbuf, long rs, memaddr wbuf, long ws);
+    HTaskPtr create_task(int cmd, memaddr rbuf, long r_size, memaddr wbuf, long w_size);
     void set_task_depend(HTaskPtr master, HTaskPtr slave);
     void spawn_task(HTaskPtr);
     void set_task_cpu(HTaskPtr, CPU_TYPE);
 
-    void* allocate(int size);
-    void* allocate(int size,int align);
-    void set_scheduler(Scheduler *s) { scheduler = s; };
-    Scheduler* get_scheduler() { return scheduler; };
+
 };
 
 
-#endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */
+#endif /* INCLUDED_SPE_TASK_MANAGER_IMPL */