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