comparison TaskManager/kernel/ppe/TaskList.h @ 366:09f33c51a204

rename include/TaskManager/* and add memory
author aaa
date Mon, 27 Jul 2009 15:51:18 +0900
parents include/TaskManager/TaskList.h@bcb81858aa62
children 8843edf37c0e
comparison
equal deleted inserted replaced
365:f8769040a5df 366:09f33c51a204
1 #ifndef INCLUDED_TASKLIST
2 #define INCLUDED_TASKLIST
3
4 #include "base.h"
5 #include "Task.h"
6
7
8 // sizeof(Task)*TASK_MAX_SIZE = 512 byte
9 #define TASK_MAX_SIZE 16
10
11 class TaskList { // 528byte
12 public:
13 BASE_NEW_DELETE(TaskList);
14
15 int length; // 4 byte
16 TaskList *next; // 4 byte
17 Task tasks[TASK_MAX_SIZE]; // 512
18 TaskList *output; // 4 byte
19 int a[1]; // padding
20
21 static TaskList* append(TaskList*, TaskList*);
22 };
23
24 typedef TaskList* TaskListPtr;
25
26 #endif