Mercurial > hg > Members > kono > Cerium
view include/TaskManager/TaskManagerImpl.h @ 47:8266445bdac2
*** empty log message ***
author | gongo |
---|---|
date | Fri, 15 Feb 2008 13:09:58 +0900 |
parents | f154d9d07a42 |
children | 7927e00fb8e2 |
line wrap: on
line source
#ifndef INCLUDED_TASK_MANAGER_IMPL #define INCLUDED_TASK_MANAGER_IMPL #ifndef INCLUDED_BUFFER_MANAGER # include "BufferManager.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