109
|
1 #ifndef INCLUDED_TASKLIST
|
|
2 #define INCLUDED_TASKLIST
|
|
3
|
|
4 #ifndef INCLUDED_BASE_H_
|
|
5 # include "base.h"
|
|
6 #endif
|
|
7
|
|
8 #ifndef INCLUDED_TASK
|
|
9 # include "Task.h"
|
|
10 #endif
|
|
11
|
|
12 // sizeof(Task)*TASK_MAX_SIZE = 512 byte
|
|
13 #define TASK_MAX_SIZE 16
|
|
14
|
|
15 class TaskList { // 528byte
|
|
16 public:
|
|
17 BASE_NEW_DELETE(TaskList);
|
|
18
|
|
19 int length; // 4 byte
|
|
20 TaskList *next; // 4 byte
|
|
21 Task tasks[TASK_MAX_SIZE]; // 512
|
|
22 int a[2]; // padding
|
|
23
|
|
24 static TaskList* append(TaskList*, TaskList*);
|
|
25 };
|
|
26
|
|
27 typedef TaskList* TaskListPtr;
|
|
28
|
|
29 #endif
|