Mercurial > hg > Members > kono > Cerium
comparison TaskManager/kernel/ppe/BufferManager.h @ 366:09f33c51a204
rename include/TaskManager/* and add memory
author | aaa |
---|---|
date | Mon, 27 Jul 2009 15:51:18 +0900 |
parents | include/TaskManager/BufferManager.h@b89ba1d96fff |
children |
comparison
equal
deleted
inserted
replaced
365:f8769040a5df | 366:09f33c51a204 |
---|---|
1 #ifndef INCLUDED_BUFFER_MANAGER | |
2 #define INCLUDED_BUFFER_MANAGER | |
3 | |
4 #include "types.h" | |
5 #include "TaskListInfo.h" | |
6 #include "TaskQueueInfo.h" | |
7 #include "HTaskInfo.h" | |
8 | |
9 /*! | |
10 * Task Input/Output buffer manager | |
11 * | |
12 */ | |
13 | |
14 class BufferManager { | |
15 public: | |
16 /* constructor */ | |
17 BufferManager(int num = 1); | |
18 virtual ~BufferManager(void); | |
19 | |
20 /* variables */ | |
21 TaskListInfo *taskListImpl; | |
22 TaskQueueInfo *taskQueueImpl; | |
23 HTaskInfo *htaskImpl; | |
24 | |
25 int machineNum; | |
26 | |
27 /* function */ | |
28 virtual void init(void); | |
29 | |
30 // TaskList | |
31 TaskListPtr create_taskList(void); | |
32 void free_taskList(TaskListPtr); | |
33 TaskListPtr clear_taskList(TaskListPtr); | |
34 | |
35 // TaskQueue | |
36 TaskQueuePtr create_taskQueue(HTaskPtr); | |
37 void free_taskQueue(TaskQueuePtr); | |
38 | |
39 // HTask | |
40 HTaskPtr create_task(int cmd); | |
41 void free_task(HTaskPtr); | |
42 | |
43 | |
44 void finish(void); | |
45 private: | |
46 }; | |
47 | |
48 #endif |