annotate include/TaskManager/BufferManager.h @ 109:5c194c71eca8

Cerium cvs version
author gongo@gendarme.local
date Wed, 12 Nov 2008 17:39:33 +0900
parents dd33ec2e51b9
children 3569d31705b6 81b25e5d5379
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_BUFFER_MANAGER
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_BUFFER_MANAGER
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
3
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
4 #ifndef INCLUDED_TYPES
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
5 # include "types.h"
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
6 #endif
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
7
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
8 #ifndef INCLUDED_TASK_LIST_INFO
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
9 # include "TaskListInfo.h"
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
10 #endif
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
11
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
12 #ifndef INCLUDED_TASK_QUEUE_INFO
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
13 # include "TaskQueueInfo.h"
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
14 #endif
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
15
54
90523ccc4dff *** empty log message ***
gongo
parents: 46
diff changeset
16 #ifndef INCLUDED_HTASK_INFO
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
17 # include "HTaskInfo.h"
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
18 #endif
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
19
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
20 class BufferManager {
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
21 public:
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
22 /* constructor */
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
23 BufferManager(int num = 1);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
24 virtual ~BufferManager(void);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
25
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
26 /* variables */
63
54355e641172 *** empty log message ***
gongo
parents: 58
diff changeset
27 TaskListInfo *taskListImpl;
54355e641172 *** empty log message ***
gongo
parents: 58
diff changeset
28 TaskQueueInfo *taskQueueImpl;
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
29 HTaskInfo *htaskImpl;
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
30
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
31 int machineNum;
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
32
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
33 /* function */
58
7492eb28b577 *** empty log message ***
gongo
parents: 54
diff changeset
34 virtual void init(void);
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
35
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
36 // TaskList
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
37 TaskListPtr create_taskList(void);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
38 void free_taskList(TaskListPtr);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
39 TaskListPtr clear_taskList(TaskListPtr);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
40
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
41 // TaskQueue
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
42 TaskQueuePtr create_taskQueue(HTaskPtr);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
43 void free_taskQueue(TaskQueuePtr);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
44
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
45 // HTask
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
46 HTaskPtr create_task(int cmd);
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
47 void free_task(HTaskPtr);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
48
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
49
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
50 void finish(void);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
51 private:
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
52 };
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
53
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
54 #endif