Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Cell/CellTaskManagerImpl.h @ 637:5530fa36d42e
not yet worked...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 11:13:42 +0900 |
parents | 1d4a8a86f26b |
children | 1622da029306 |
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(); |
109 | 27 TaskListPtr mail_check(MailQueuePtr mail_list); |
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); |
109 | 30 |
31 // user | |
32 int add_data(ListDataPtr, uint32, int); | |
637 | 33 #if 0 |
109 | 34 void* allocate(int size); |
506 | 35 void* allocate(int size,int align); |
380 | 36 Scheduler* get_scheduler(); |
637 | 37 #endif |
109 | 38 |
39 private: | |
40 void send_taskList(int id); | |
58 | 41 }; |
42 | |
43 #endif |