Mercurial > hg > Members > kono > Cerium
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/kernel/ppe/TaskList.h Mon Jul 27 15:51:18 2009 +0900 @@ -0,0 +1,26 @@ +#ifndef INCLUDED_TASKLIST +#define INCLUDED_TASKLIST + +#include "base.h" +#include "Task.h" + + +// sizeof(Task)*TASK_MAX_SIZE = 512 byte +#define TASK_MAX_SIZE 16 + +class TaskList { // 528byte +public: + BASE_NEW_DELETE(TaskList); + + int length; // 4 byte + TaskList *next; // 4 byte + Task tasks[TASK_MAX_SIZE]; // 512 + TaskList *output; // 4 byte + int a[1]; // padding + + static TaskList* append(TaskList*, TaskList*); +}; + +typedef TaskList* TaskListPtr; + +#endif