Mercurial > hg > Game > Cerium
comparison include/TaskManager/TaskList.h @ 109:028ffc9c0375 draft
Cerium cvs version
author | gongo@gendarme.local |
---|---|
date | Wed, 12 Nov 2008 17:39:33 +0900 |
parents | |
children | e9735a64cd90 |
comparison
equal
deleted
inserted
replaced
108:6f3b3dd3c095 | 109:028ffc9c0375 |
---|---|
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 |