Mercurial > hg > Members > kono > Cerium
view include/TaskManager/TaskManagerImpl.h @ 14:41ccd4b38184
*** empty log message ***
author | gongo |
---|---|
date | Fri, 08 Feb 2008 18:00:21 +0900 |
parents | 2356238ebea7 |
children | 0c9341da4522 |
line wrap: on
line source
#ifndef INCLUDED_TASK_MANAGER_IMPL #define INCLUDED_TASK_MANAGER_IMPL #ifndef INCLUDED_TASK_INFO # include "TaskInfo.h" #endif class TaskManagerImpl { public: /* constructor */ TaskManagerImpl(int num = 1); virtual ~TaskManagerImpl(void) {} /* variables */ int machineNum; TaskInfo* taskInfo; /* functions */ virtual void init(void) = 0; virtual void run(void) = 0; 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); virtual void run_task(HTaskPtr); }; #endif