Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Cell/CellTaskManagerImpl.h @ 722:abad59c7e3ac
CellTaskManager fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 19 Dec 2009 12:20:20 +0900 |
parents | dac59b74e02a |
children | 8a6f1fa038de |
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(); |
722 | 29 void sendTaskList(); |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
30 void append_activeTask(HTaskPtr); |
672 | 31 void show_profile() ; |
32 void start_profile() ; | |
109 | 33 |
34 // user | |
672 | 35 // int add_data(ListDataPtr, uint32, int); |
637 | 36 #if 0 |
109 | 37 void* allocate(int size); |
506 | 38 void* allocate(int size,int align); |
380 | 39 Scheduler* get_scheduler(); |
637 | 40 #endif |
109 | 41 |
42 private: | |
43 void send_taskList(int id); | |
58 | 44 }; |
45 | |
46 #endif |