diff include/TaskManager/CellScheduler.h @ 109:5c194c71eca8

Cerium cvs version
author gongo@gendarme.local
date Wed, 12 Nov 2008 17:39:33 +0900
parents f320d1039d51
children 72dcf908ec52
line wrap: on
line diff
--- a/include/TaskManager/CellScheduler.h	Wed Nov 12 17:29:35 2008 +0900
+++ b/include/TaskManager/CellScheduler.h	Wed Nov 12 17:39:33 2008 +0900
@@ -1,21 +1,28 @@
 #ifndef INCLUDED_CELL_SCHEDULER
 #define INCLUDED_CELL_SCHEDULER
 
+#ifndef INCLUDED_BASE_H_
+#  include "base.h"
+#endif
+
 #ifndef INCLUDED_SCHEDULER
 #  include "Scheduler.h"
 #endif
 
-
 class CellScheduler : public Scheduler {
 public:
-	static void *tex;
-	void *state[16];
+    BASE_NEW_DELETE(CellScheduler);
+
+    int id;
+
     void init_impl(void);
-	void *get_state(int);
-	void *set_state(int,void*);
+
+    void *allocate(int size);
+    void mainMem_alloc(int id, int size);
+    void mainMem_wait(void);
+
+private:
+    int mainMemNum;
 };
 
-//extern void* CellScheduler::tex;
-//const int CellScheduler::MAX_GLOBAL_STATE = 16;
-
 #endif