Mercurial > hg > Members > kono > Cerium
view TaskManager/Fifo/FifoTaskManagerImpl.h @ 672:3b6290c05f9f
add profiling code
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 05 Dec 2009 20:20:08 +0900 |
parents | 7c9ded1ea750 |
children | dac59b74e02a |
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 show_profile() ; void start_profile() ; void mail_check(); void mail_check(HTaskInfo *waitQueue); TaskListPtr get_runTaskList(void); void schedule(TaskListPtr); // call by user }; #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */