Mercurial > hg > Game > Cerium
view TaskManager/Fifo/FifoTaskManagerImpl.h @ 647:7ba4ad4538b1 draft
MailManager rewrite. not yet worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 21 Nov 2009 16:18:47 +0900 |
parents | ecf056ddd21a |
children | 27fec8c70c9c |
line wrap: on
line source
#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; TaskListPtr mainTaskList; // activeTask であるべきなんじゃないの? MailManager *mailManager; MainScheduler *mainScheduler; /* functions */ // call by system void init(void); void init(MainScheduler*, TaskManagerImpl*); void run(void); void mail_check(); void mail_check(HTaskInfo *waitQueue); TaskListPtr get_runTaskList(void); void schedule(TaskListPtr); // call by user }; #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */