Mercurial > hg > Members > kono > Cerium
view TaskManager/Fifo/FifoTaskManagerImpl.h @ 506:1d4a8a86f26b
code_load in read()
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 02:50:01 +0900 |
parents | cb5ecfc5aaa3 |
children | 5530fa36d42e |
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 *scheduler; /* functions */ // call by system void init(void); void init(MainScheduler*, TaskManagerImpl*); void run(void); void mail_check(MailQueuePtr mail_list); void mail_check(MailQueuePtr mail_list, HTaskInfo *waitQueue); TaskListPtr get_runTaskList(void); MailQueuePtr schedule(TaskListPtr); // call by user int add_data(ListDataPtr, uint32, int); void* allocate(int size,int align); void* allocate(int size); Scheduler* get_scheduler(); }; #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */