46
|
1 #ifndef INCLUDED_HTASK_INFO
|
|
2 #define INCLUDED_HTASK_INFO
|
|
3
|
307
|
4 #include "HTask.h"
|
46
|
5
|
|
6 class HTaskInfo {
|
|
7 public:
|
|
8 /* constructor */
|
|
9 HTaskInfo(void);
|
109
|
10 virtual ~HTaskInfo(void);
|
46
|
11
|
|
12 /* functions */
|
|
13 int init(int num);
|
109
|
14 HTaskPtr create(int cmd);
|
46
|
15 void free(HTaskPtr q);
|
109
|
16 virtual int extend_pool(int num);
|
46
|
17
|
109
|
18 protected:
|
46
|
19 /* variables */
|
|
20 HTaskPtr htaskPool;
|
|
21 HTaskPtr freeHTask;
|
|
22
|
|
23 /* functions */
|
|
24 void destroy(void);
|
109
|
25
|
|
26 private:
|
46
|
27 };
|
|
28
|
|
29 #endif
|