annotate include/TaskManager/BufferManager.h @ 356:5b995810b86a draft

merge heads
author aaa
date Fri, 17 Jul 2009 15:04:02 +0900
parents cfd20d609ace 3fc86ddf5d1c
children
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
307
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 291
diff changeset
4 #include "types.h"
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 291
diff changeset
5 #include "TaskListInfo.h"
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 291
diff changeset
6 #include "TaskQueueInfo.h"
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 291
diff changeset
7 #include "HTaskInfo.h"
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
8
291
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
9 /*!
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
10 * Task Input/Output buffer manager
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
11 *
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
12 */
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
13
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
14 class BufferManager {
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
15 public:
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
16 /* constructor */
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
17 BufferManager(int num = 1);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
18 virtual ~BufferManager(void);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
19
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
20 /* variables */
63
54355e641172 *** empty log message ***
gongo
parents: 58
diff changeset
21 TaskListInfo *taskListImpl;
54355e641172 *** empty log message ***
gongo
parents: 58
diff changeset
22 TaskQueueInfo *taskQueueImpl;
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
23 HTaskInfo *htaskImpl;
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
24
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
25 int machineNum;
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
26
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
27 /* function */
58
7492eb28b577 *** empty log message ***
gongo
parents: 54
diff changeset
28 virtual void init(void);
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
29
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
30 // TaskList
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
31 TaskListPtr create_taskList(void);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
32 void free_taskList(TaskListPtr);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
33 TaskListPtr clear_taskList(TaskListPtr);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
34
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
35 // TaskQueue
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
36 TaskQueuePtr create_taskQueue(HTaskPtr);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
37 void free_taskQueue(TaskQueuePtr);
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
38
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
39 // HTask
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 93
diff changeset
40 HTaskPtr create_task(int cmd);
46
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
41 void free_task(HTaskPtr);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
42
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
43
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
44 void finish(void);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
45 private:
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
46 };
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
47
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
48 #endif