diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/TaskManager/TaskList.h	Wed Nov 12 17:39:33 2008 +0900
@@ -0,0 +1,29 @@
+#ifndef INCLUDED_TASKLIST
+#define INCLUDED_TASKLIST
+
+#ifndef INCLUDED_BASE_H_
+#  include "base.h"
+#endif
+
+#ifndef INCLUDED_TASK
+#  include "Task.h"
+#endif
+
+// 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
+    int a[2]; // padding
+
+    static TaskList* append(TaskList*, TaskList*);
+};
+
+typedef TaskList* TaskListPtr;
+
+#endif