46
|
1 #ifndef INCLUDED_TASK_QUEUE_INFO
|
|
2 #define INCLUDED_TASK_QUEUE_INFO
|
|
3
|
109
|
4 #ifndef INCLUDED_TASK_QUEUE
|
|
5 # include "TaskQueue.h"
|
46
|
6 #endif
|
|
7
|
|
8 class TaskQueueInfo {
|
|
9 public:
|
|
10 /* constructor */
|
|
11 TaskQueueInfo(void);
|
|
12 ~TaskQueueInfo(void);
|
|
13
|
|
14 /* functions */
|
|
15 int init(int num);
|
109
|
16 TaskQueuePtr create(TaskPtr task);
|
46
|
17 void free(TaskQueuePtr queue);
|
109
|
18
|
46
|
19 private:
|
|
20 /* variables */
|
|
21 TaskQueuePtr taskQueuePool;
|
|
22 TaskQueuePtr freeTaskQueue;
|
|
23
|
|
24 /* functions */
|
|
25 int extend_pool(int num);
|
|
26 void destroy(void);
|
|
27 };
|
|
28
|
|
29 #endif
|