annotate include/TaskManager/TaskList.h @ 217:897aeb144569

fix
author gongo@localhost.localdomain
date Wed, 04 Feb 2009 22:50:42 +0900
parents 5c194c71eca8
children 59c3b9df3c67
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #ifndef INCLUDED_TASKLIST
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDED_TASKLIST
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #ifndef INCLUDED_BASE_H_
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 # include "base.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #endif
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 #ifndef INCLUDED_TASK
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 # include "Task.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 #endif
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 // sizeof(Task)*TASK_MAX_SIZE = 512 byte
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 #define TASK_MAX_SIZE 16
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 class TaskList { // 528byte
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 public:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17 BASE_NEW_DELETE(TaskList);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 int length; // 4 byte
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 TaskList *next; // 4 byte
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 Task tasks[TASK_MAX_SIZE]; // 512
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22 int a[2]; // padding
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24 static TaskList* append(TaskList*, TaskList*);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
25 };
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
26
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
27 typedef TaskList* TaskListPtr;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
28
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29 #endif