Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Cell/CellTaskManagerImpl.h @ 720:dac59b74e02a
Cell fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 19 Dec 2009 10:43:19 +0900 |
parents | 3b6290c05f9f |
children | abad59c7e3ac |
rev | line source |
---|---|
58 | 1 #ifndef INCLUDED_CELL_TASK_MANAGER_IMPL |
2 #define INCLUDED_CELL_TASK_MANAGER_IMPL | |
3 | |
307 | 4 #include "TaskManagerImpl.h" |
5 #include "FifoTaskManagerImpl.h" | |
6 #include "SpeThreads.h" | |
65 | 7 |
58 | 8 class CellTaskManagerImpl : public TaskManagerImpl { |
9 public: | |
67 | 10 /* constructor */ |
109 | 11 CellTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {} |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
12 ~CellTaskManagerImpl(); |
67 | 13 |
65 | 14 /* variables */ |
109 | 15 TaskListPtr *speTaskList; |
16 TaskListPtr *speTaskList_bg; | |
17 | |
65 | 18 SpeThreads *speThreads; |
109 | 19 int *flag_sendTaskList; |
20 FifoTaskManagerImpl *ppeManager; | |
637 | 21 int spe_running; |
65 | 22 |
58 | 23 /* functions */ |
109 | 24 // system |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
25 void init(); |
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
26 void run(); |
720 | 27 void mail_check(); |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
28 void set_runTaskList(); |
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
29 void append_activeTask(HTaskPtr); |
672 | 30 void show_profile() ; |
31 void start_profile() ; | |
109 | 32 |
33 // user | |
672 | 34 // int add_data(ListDataPtr, uint32, int); |
637 | 35 #if 0 |
109 | 36 void* allocate(int size); |
506 | 37 void* allocate(int size,int align); |
380 | 38 Scheduler* get_scheduler(); |
637 | 39 #endif |
109 | 40 |
41 private: | |
42 void send_taskList(int id); | |
58 | 43 }; |
44 | |
45 #endif |