diff TaskManager/Fifo/FifoTaskManagerImpl.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/Fifo/FifoTaskManagerImpl.h	Mon Nov 08 01:23:25 2010 +0900
@@ -0,0 +1,43 @@
+#ifndef INCLUDED_FIFO_TASK_MANAGER_IMPL
+#define INCLUDED_FIFO_TASK_MANAGER_IMPL
+
+#include "TaskManagerImpl.h"
+#include "MainScheduler.h"
+#include "Scheduler.h"
+
+class FifoTaskManagerImpl : public TaskManagerImpl {
+public:
+    /* constructor */
+    FifoTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {}
+    ~FifoTaskManagerImpl(void);
+
+    /* variables */
+    int machineNum;
+    QueueInfo<TaskList> *taskListInfo;  
+    QueueInfo<TaskList> *ppeTaskList;  // running task
+
+    MailManager *mailManager;
+    MainScheduler *mainScheduler;
+
+    /* functions */
+    // call by system
+    void init();
+    void init(MainScheduler*, TaskManagerImpl*);
+    void poll();  // called from CellTaskManagerImpl
+    void run();
+    void show_profile()  {};
+    void start_profile()  {};
+    void polling();
+
+
+    void mail_check();
+
+    void set_runTaskList();
+    void sendTaskList();
+
+    // call by user
+
+};
+
+
+#endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */