46
|
1 #ifndef INCLUDED_TASK_LIST_INFO
|
|
2 #define INCLUDED_TASK_LIST_INFO
|
|
3
|
109
|
4 #ifndef INCLUDED_TYPES
|
|
5 # include "types.h"
|
46
|
6 #endif
|
|
7
|
109
|
8 #ifndef INCLUDED_TASKLIST
|
|
9 # include "TaskList.h"
|
46
|
10 #endif
|
|
11
|
|
12 class TaskListInfo {
|
|
13 public:
|
|
14 /* constructor */
|
|
15 TaskListInfo(void);
|
|
16 virtual ~TaskListInfo(void);
|
109
|
17
|
46
|
18 /* functions */
|
|
19 int init(int num);
|
|
20 TaskListPtr create(void);
|
|
21 void free(TaskListPtr list);
|
|
22 static TaskListPtr append(TaskListPtr list, TaskListPtr q);
|
59
|
23 virtual int extend_pool(int num);
|
46
|
24
|
|
25 protected:
|
|
26 /* variables */
|
|
27 TaskListPtr taskListPool;
|
|
28 TaskListPtr freeTaskList;
|
|
29
|
|
30 /* functions */
|
|
31 void destroy(void);
|
59
|
32
|
|
33 private:
|
46
|
34 };
|
|
35
|
|
36 #endif
|