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