annotate include/TaskManager/TaskQueueInfo.h @ 46:f154d9d07a42

*** empty log message ***
author gongo
date Fri, 15 Feb 2008 13:09:43 +0900
parents
children 90523ccc4dff
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_TASK_QUEUE_INFO
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_TASK_QUEUE_INFO
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
3
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
4 #ifndef INCLUDED_TASK
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
5 # include "task.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_HTASK_INFO
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
9 # include "HTaskInfo.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 class TaskQueueInfo {
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
13 public:
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
14 /* constructor */
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
15 TaskQueueInfo(void);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
16 ~TaskQueueInfo(void);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
17
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
18 /* functions */
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
19 int init(int num);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
20 TaskQueuePtr create(HTaskPtr task);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
21 void free(TaskQueuePtr queue);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
22 static TaskQueuePtr append(TaskQueuePtr list, TaskQueuePtr q);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
23
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
24 private:
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
25 /* variables */
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
26 TaskQueuePtr taskQueuePool;
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
27 TaskQueuePtr freeTaskQueue;
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
28
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
29 /* functions */
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
30 int extend_pool(int num);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
31 void destroy(void);
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
32 };
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
33
f154d9d07a42 *** empty log message ***
gongo
parents:
diff changeset
34 #endif