Mercurial > hg > Game > Cerium
view include/TaskManager/TaskManagerImpl.h @ 45:494a19b053c5
*** empty log message ***
author | gongo |
---|---|
date | Fri, 15 Feb 2008 13:09:43 +0900 |
parents | aa11038dbdc1 |
children | f154d9d07a42 |
line wrap: on
line source
#ifndef INCLUDED_TASK_MANAGER_IMPL #define INCLUDED_TASK_MANAGER_IMPL #ifndef INCLUDED_TASK_INFO # include "TaskInfo.h" #endif #ifndef INCLUDED_MAIL_MANAGER # include "MailManager.h" #endif #ifndef INCLUDED_MAIN_SCHEDULER # include "MainScheduler.h" #endif class TaskManagerImpl { public: /* constructor */ TaskManagerImpl(int num = 1); virtual ~TaskManagerImpl(void) {} /* variables */ int machineNum; MailManager *mailManager; MainScheduler *scheduler; BufferManager *taskInfo; /* functions */ virtual void init(void); void run(void); MailQueuePtr mail_check(MailQueuePtr mail_list); HTaskPtr create_task(int cmd, int siz, unsigned long long in_addr, unsigned long long out_addr, void (*func)(void)); void set_task_depend(HTaskPtr master, HTaskPtr slave); TaskListPtr set_task(void); virtual void spawn_task(HTaskPtr); }; #endif