Mercurial > hg > Game > Cerium
annotate TaskManager/Cell/spe/CellScheduler.h @ 895:b662e9dd26b0 draft
add alignment of classes in SPU
width and height are automatically set in frame buffer API
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Jul 2010 17:23:49 +0900 |
parents | 682a9bb1e2cc |
children | 1b9418af3127 |
rev | line source |
---|---|
58 | 1 #ifndef INCLUDED_CELL_SCHEDULER |
2 #define INCLUDED_CELL_SCHEDULER | |
3 | |
307 | 4 #include "base.h" |
5 #include "Scheduler.h" | |
58 | 6 |
7 class CellScheduler : public Scheduler { | |
8 public: | |
109 | 9 BASE_NEW_DELETE(CellScheduler); |
10 | |
58 | 11 void init_impl(void); |
109 | 12 |
13 void *allocate(int size); | |
14 void mainMem_alloc(int id, int size); | |
15 void mainMem_wait(void); | |
451
682a9bb1e2cc
tag fixed... test_nogl move
kazz@henri.cr.ie.u-ryukyu.ac.jp
parents:
442
diff
changeset
|
16 uint32 get_tag(); |
109 | 17 |
18 private: | |
19 int mainMemNum; | |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
451
diff
changeset
|
20 } __attribute__ ((aligned (DEFAULT_ALIGNMENT))); |
58 | 21 |
22 #endif |