diff TaskManager/Cell/CellTaskManagerImpl.h @ 0:04e28d8d3c6f

first commit
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 08 Nov 2010 01:23:25 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TaskManager/Cell/CellTaskManagerImpl.h	Mon Nov 08 01:23:25 2010 +0900
@@ -0,0 +1,41 @@
+#ifndef INCLUDED_CELL_TASK_MANAGER_IMPL
+#define INCLUDED_CELL_TASK_MANAGER_IMPL
+
+#include "TaskManagerImpl.h"
+#include "FifoTaskManagerImpl.h"
+#include "SpeThreads.h"
+
+class CellTaskManagerImpl : public TaskManagerImpl {
+public:
+    /* constructor */
+    CellTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {}
+    ~CellTaskManagerImpl();
+
+    /* variables */
+    QueueInfo<TaskList> **taskListInfo;
+    QueueInfo<TaskList> **speTaskList;  // running task
+
+    SpeThreads *speThreads;
+    FifoTaskManagerImpl *ppeManager;
+    int spe_running;
+
+    /* functions */
+    // system
+    void init();
+    void run();
+    void poll();
+    void mail_check(int id);
+    void set_runTaskList();
+    void sendTaskList();
+    void append_activeTask(HTaskPtr);
+    void show_profile() ;
+    void start_profile() ;
+    void polling();
+
+private:
+    void send_taskList(int id);
+    void show_dead_lock_info();
+
+};
+
+#endif