comparison 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
comparison
equal deleted inserted replaced
108:6f3b3dd3c095 109:5c194c71eca8
1 #ifndef INCLUDED_CELL_SCHEDULER 1 #ifndef INCLUDED_CELL_SCHEDULER
2 #define INCLUDED_CELL_SCHEDULER 2 #define INCLUDED_CELL_SCHEDULER
3
4 #ifndef INCLUDED_BASE_H_
5 # include "base.h"
6 #endif
3 7
4 #ifndef INCLUDED_SCHEDULER 8 #ifndef INCLUDED_SCHEDULER
5 # include "Scheduler.h" 9 # include "Scheduler.h"
6 #endif 10 #endif
7 11
8
9 class CellScheduler : public Scheduler { 12 class CellScheduler : public Scheduler {
10 public: 13 public:
11 static void *tex; 14 BASE_NEW_DELETE(CellScheduler);
12 void *state[16]; 15
16 int id;
17
13 void init_impl(void); 18 void init_impl(void);
14 void *get_state(int); 19
15 void *set_state(int,void*); 20 void *allocate(int size);
21 void mainMem_alloc(int id, int size);
22 void mainMem_wait(void);
23
24 private:
25 int mainMemNum;
16 }; 26 };
17 27
18 //extern void* CellScheduler::tex;
19 //const int CellScheduler::MAX_GLOBAL_STATE = 16;
20
21 #endif 28 #endif