Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Cell/CellTaskManagerImpl.h @ 506:1d4a8a86f26b
code_load in read()
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 02:50:01 +0900 |
parents | 4a2c9ff53605 |
children | 5530fa36d42e |
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; | |
65 | 21 |
58 | 22 /* functions */ |
109 | 23 // system |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
24 void init(); |
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
25 void run(); |
109 | 26 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
|
27 void set_runTaskList(); |
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
28 void append_activeTask(HTaskPtr); |
109 | 29 |
30 // user | |
31 int add_data(ListDataPtr, uint32, int); | |
32 void* allocate(int size); | |
506 | 33 void* allocate(int size,int align); |
380 | 34 Scheduler* get_scheduler(); |
109 | 35 |
36 private: | |
37 void send_taskList(int id); | |
58 | 38 }; |
39 | |
40 #endif |