Mercurial > hg > Members > kono > Cerium
view include/TaskManager/FifoTaskManagerImpl.h @ 109:5c194c71eca8
Cerium cvs version
author | gongo@gendarme.local |
---|---|
date | Wed, 12 Nov 2008 17:39:33 +0900 |
parents | 7492eb28b577 |
children | 7075842aa155 |
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 */