Mercurial > hg > Game > Cerium
view TaskManager/Fifo/FifoTaskManagerImpl.h @ 596:f1c2e11a2ef4 draft
add xdr_getpos
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 04 Nov 2009 22:52:06 +0900 |
parents | 5641d121818e |
children | 20665e4060ea |
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 */