Mercurial > hg > Game > Cerium
comparison TaskManager/kernel/ppe/TaskManagerImpl.h @ 3:2356238ebea7
*** empty log message ***
author | gongo |
---|---|
date | Tue, 05 Feb 2008 20:22:50 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:70e9baa00f51 | 3:2356238ebea7 |
---|---|
1 #ifndef INCLUDED_TASK_MANAGER_IMPL | |
2 #define INCLUDED_TASK_MANAGER_IMPL | |
3 | |
4 #ifndef INCLUDED_TASK_INFO | |
5 # include "TaskInfo.h" | |
6 #endif | |
7 | |
8 class TaskManagerImpl { | |
9 public: | |
10 /* constructor */ | |
11 TaskManagerImpl(int num = 1); | |
12 virtual ~TaskManagerImpl(void) {} | |
13 | |
14 /* variables */ | |
15 int machineNum; | |
16 TaskInfo* taskInfo; | |
17 | |
18 /* functions */ | |
19 virtual void init(void) = 0; | |
20 virtual void run(void) = 0; | |
21 | |
22 HTaskPtr create_task(int cmd, int siz, | |
23 unsigned long long in_addr, | |
24 unsigned long long out_addr, | |
25 void (*func)(void)); | |
26 void set_task_depend(HTaskPtr master, HTaskPtr slave); | |
27 void run_task(HTaskPtr); | |
28 }; | |
29 #endif |