Mercurial > hg > Game > Cerium
view include/TaskManager/FifoTaskManagerImpl.h @ 292:2369f477ffbe draft
Document/Cerium_2009.mm
author | aaa |
---|---|
date | Fri, 05 Jun 2009 18:53:42 +0900 |
parents | 028ffc9c0375 |
children | 3fc86ddf5d1c |
line wrap: on
line source
#ifndef INCLUDED_FIFO_TASK_MANAGER_IMPL #define INCLUDED_FIFO_TASK_MANAGER_IMPL #ifndef INCLUDED_TASK_MANAGER_IMPL # include "TaskManagerImpl.h" #endif #ifndef INCLUDED_MAIN_SCHEDULER # include "MainScheduler.h" #endif class FifoTaskManagerImpl : public TaskManagerImpl { public: /* constructor */ FifoTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {} ~FifoTaskManagerImpl(void); /* variables */ int machineNum; TaskListPtr mainTaskList; MailManager *mailManager; MainScheduler *scheduler; /* functions */ // call by system void init(void); void init(MainScheduler*, BufferManager*); void run(void); void mail_check(MailQueuePtr mail_list); void mail_check(MailQueuePtr mail_list, TaskQueuePtr *waitQueue); TaskListPtr get_runTaskList(void); MailQueuePtr schedule(TaskListPtr); // call by user int add_data(ListDataPtr, uint32, int); void* allocate(int size); }; #ifndef Cerium_malloc #define Cerium_malloc(dest, align, size) \ *dest = malloc(size); #endif /* Cerium_malloc */ #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */