Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Cell/CellTaskManagerImpl.cc @ 936:14fb1c888931
dead lock on spu/ppu mail
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 31 Jul 2010 05:31:12 +0900 |
parents | e015a4e5e4b0 |
children | 9689cba44964 |
rev | line source |
---|---|
321 | 1 #define DEBUG |
2 #include "error.h" | |
57 | 3 #include <stdio.h> |
4 #include <stdlib.h> | |
5 #include <string.h> | |
6 #include "CellTaskManagerImpl.h" | |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
7 #include "HTaskInfo.h" |
621 | 8 #include "SchedTask.h" |
635
8cc609285bbe
SimpleTask worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
629
diff
changeset
|
9 #include "MainScheduler.h" |
57 | 10 #include "types.h" |
672 | 11 #include "SysFunc.h" |
12 | |
720 | 13 static void send_alloc_reply(CellTaskManagerImpl *tm, int id, SpeThreads *speThreads); |
57 | 14 |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
15 CellTaskManagerImpl::~CellTaskManagerImpl() |
67 | 16 { |
109 | 17 delete speThreads; |
18 delete [] speTaskList; | |
19 | |
20 delete ppeManager; | |
67 | 21 } |
22 | |
57 | 23 void |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
24 CellTaskManagerImpl::init() |
57 | 25 { |
637 | 26 spe_running = 0; |
476
926d6aff886c
CellBufferManager removed
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
380
diff
changeset
|
27 |
853 | 28 // 実行可能な HTask のリスト。 FifoTaskManager と共有される |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
29 activeTaskQueue = new HTaskInfo(); |
853 | 30 // HTask の factory。 HTaskInfo ならなんでもいい。 |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
31 htaskImpl = activeTaskQueue ; // any HTaskInfo |
853 | 32 |
65 | 33 speThreads = new SpeThreads(machineNum); |
34 speThreads->init(); | |
109 | 35 |
853 | 36 // 実行される Task 用の パイプライン用のダブルバッファ |
37 speTaskList = new TaskListInfoPtr[machineNum]; // spe上の走っている Task の配列 | |
38 taskListInfo = new TaskListInfoPtr[machineNum]; // 次に走る Task の配列 | |
476
926d6aff886c
CellBufferManager removed
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
380
diff
changeset
|
39 |
109 | 40 for (int i = 0; i < machineNum; i++) { |
812 | 41 taskListInfo[i] = new TaskListInfo(); |
808 | 42 speTaskList[i] = new TaskListInfo(); |
109 | 43 } |
44 | |
321 | 45 // PPE 側の管理をする Manager |
835 | 46 ppeManager = new FifoTaskManagerImpl(machineNum); |
479
5bda98b0b56d
Double Linked List base TaskQueue
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
476
diff
changeset
|
47 // 大半のTaskQueueInfoは、共有される |
637 | 48 MainScheduler *mscheduler = new MainScheduler; |
873
3b9536925fb8
fix hash problem ( unsigned int-> long overflow )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
860
diff
changeset
|
49 set_scheduler(mscheduler); |
853 | 50 ppeManager->init(mscheduler, this); // ここで HTaskInfo が共有される。 |
619 | 51 |
52 ppeManager->get_scheduler()->set_manager(this); | |
637 | 53 |
853 | 54 // Task 内からManager->task_create() とかするときに必要なTaskManager。 |
55 // 現状では ppe 側からしか動かない | |
56 // spe 側から Task create できない | |
619 | 57 schedTaskManager = new SchedTask(); |
58 schedTaskManager->init(0,0,0,ppeManager->get_scheduler()); | |
936
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
59 ppeManager->schedTaskManager = schedTaskManager; |
57 | 60 } |
61 | |
109 | 62 void |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
63 CellTaskManagerImpl::append_activeTask(HTaskPtr task) |
109 | 64 { |
65 if (task->cpu_type == CPU_PPE) { | |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
66 ppeManager->append_activeTask(task); |
109 | 67 } else { |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
68 activeTaskQueue->addLast(task); |
109 | 69 } |
70 } | |
71 | |
321 | 72 // SPE_ANY が指定されていた時に |
73 // これをインクリメントしつつ呼ぶことにする。 | |
74 // 乱数使ってもいいけどさ。 | |
109 | 75 int cur_anySpeid = 0; |
76 | |
77 /** | |
321 | 78 * ActiveTaskQueue から Task を |
79 * 各 SPE に渡す TaskList に入れる | |
109 | 80 * |
321 | 81 * ここの activeTaskQueue は FifoTaskManagerImpl のと意味が違い、 |
82 * spe に渡される Task だけ入っている | |
109 | 83 */ |
84 void | |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
85 CellTaskManagerImpl::set_runTaskList() |
70 | 86 { |
109 | 87 int speid; |
70 | 88 |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
89 while (HTaskPtr htask = activeTaskQueue->poll()) { |
70 | 90 |
109 | 91 if (htask->cpu_type == SPE_ANY) { |
92 speid = cur_anySpeid++; | |
93 cur_anySpeid = (cur_anySpeid < machineNum) | |
94 ? cur_anySpeid : 0; | |
70 | 95 } else { |
321 | 96 // -1 してるのは |
97 // htask->cpu_type - CPU_SPE で | |
98 // SPE0 = 1, SPE1 = 2, ... SPE5 = 6 ってなってるので | |
99 // 配列的 (SPE0 = arr[0], SPE1 = arr[1]) にするため | |
109 | 100 speid = htask->cpu_type - CPU_SPE - 1; |
101 | |
321 | 102 // SPU の数以上が指定されていれば |
103 // とりあえず MAX_USE_SPE_NUM (実際に動く SPE の最大数) で | |
104 // あまり求めてそれを使うことにする。 | |
105 // ここで判定するもんでもないか? | |
109 | 106 if (speid >= machineNum) { |
107 speid %= machineNum; | |
108 } | |
70 | 109 } |
808 | 110 set_taskList(htask, taskListInfo[speid]); |
70 | 111 } |
109 | 112 } |
113 | |
114 void | |
722 | 115 CellTaskManagerImpl::sendTaskList() |
721 | 116 { |
117 for (int i = 0; i < machineNum; i++) { | |
936
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
118 if (! taskListInfo[i]->empty() ) { |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
119 mail_check(i); |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
120 // SPE に送る TaskList の準備 |
721 | 121 send_taskList(i); |
122 spe_running++; | |
123 } | |
124 } | |
125 } | |
126 | |
127 void | |
808 | 128 CellTaskManagerImpl::poll() |
129 { | |
130 set_runTaskList(); | |
131 // TaskList 待ちの SPE に TaskList を送る | |
132 sendTaskList(); | |
133 } | |
134 | |
135 void | |
501
4a2c9ff53605
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
136 CellTaskManagerImpl::run() |
109 | 137 { |
138 do { | |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
139 // PPE side |
808 | 140 ppeManager->poll(); |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
141 // SPE side |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
142 do { |
808 | 143 poll(); |
854 | 144 } while (ppeManager->activeTaskQueue->empty() && spe_running >0 ); |
145 } while (!ppeManager->activeTaskQueue->empty() || spe_running >0); | |
721 | 146 if (!waitTaskQueue->empty()) { |
736 | 147 get_scheduler()->printf("Dead lock detected\n"); |
721 | 148 } |
70 | 149 } |
150 | |
65 | 151 /** |
321 | 152 * SPE からのメールをチェックする |
640
a909c50081c2
SimpeTask on Cell worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
638
diff
changeset
|
153 */ |
a909c50081c2
SimpeTask on Cell worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
638
diff
changeset
|
154 |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
155 void |
936
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
156 CellTaskManagerImpl::mail_check(int id) |
57 | 157 { |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
158 memaddr data; |
109 | 159 |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
160 // SPE Scheduler からの mail check |
936
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
161 while (speThreads->has_mail(id, 1, &data)) { |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
162 if (data == (memaddr)MY_SPE_STATUS_READY) { |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
163 // MY_SPE_STATUS_READY: SPE が持ってた Task 全て終了 |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
164 // freeAll する前に循環リストに戻す |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
165 speTaskList[id]->getLast()->next = speTaskList[id]; |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
166 speTaskList[id]->freeAll(); |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
167 spe_running--; |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
168 } else if (data == (memaddr)MY_SPE_COMMAND_MALLOC) { |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
169 // MY_SPE_COMMAND_MALLOC SPE からのmain memory request |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
170 send_alloc_reply(this, id, speThreads); |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
171 } else if (data > (memaddr)MY_SPE_NOP) { |
830 | 172 #ifdef TASK_LIST_MAIL |
936
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
173 TaskListPtr list = (TaskListPtr)data; |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
174 check_task_list_finish(schedTaskManager, list, waitTaskQueue); |
830 | 175 #else |
936
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
176 // 終了したタスク(PPEにあるのでアドレス) |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
177 HTaskPtr task = (HTaskPtr)data; |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
178 task->post_func(schedTaskManager, task->post_arg1, task->post_arg2); |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
179 check_task_finish(task, waitTaskQueue); |
830 | 180 #endif |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
181 } |
936
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
182 // MY_SPE_NOP: 特に意味のないコマンド |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
183 } |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
184 } |
109 | 185 |
832
29094b48d966
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
186 void |
29094b48d966
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
187 CellTaskManagerImpl::polling() |
29094b48d966
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
188 { |
29094b48d966
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
189 // may call recursively check_task_list_finish() |
29094b48d966
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
190 // we need fifo here |
936
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
191 for (int i = 0; i < machineNum; i++) { |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
192 mail_check(i); |
14fb1c888931
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
923
diff
changeset
|
193 } |
832
29094b48d966
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
194 } |
29094b48d966
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
830
diff
changeset
|
195 |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
196 static void |
720 | 197 send_alloc_reply(CellTaskManagerImpl *tm, int id, SpeThreads *speThreads) |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
198 { |
273 | 199 |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
200 /** |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
201 * info[0] = alloc_id; (CellScheduler::mainMem_alloc 参照) |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
202 * info[1] = alloc_addr; |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
203 */ |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
204 memaddr alloc_info[2]; |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
205 long alloc_size; |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
206 long command; |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
207 |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
208 speThreads->get_mail(id, 2, alloc_info); |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
209 command = (long)alloc_info[0]; |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
210 alloc_size = (long)alloc_info[1]; |
109 | 211 |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
212 |
720 | 213 alloc_info[1] = (memaddr)tm->allocate(alloc_size); |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
214 //__debug_ppe("[PPE] MALLOCED 0x%lx from [SPE %d]\n", alloc_info[1],id); |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
215 // 今のところ何もしてない。どうも、この allocate を free |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
216 // するのは、SPE task が返した値を見て行うらしい。それは、 |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
217 // 忘れやすいのではないか? |
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
218 speThreads->add_output_tasklist(command, alloc_info[1], alloc_size); |
109 | 219 |
719
cafffff0f45a
clean up scheduler main loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
718
diff
changeset
|
220 speThreads->send_mail(id, 2, alloc_info); |
109 | 221 } |
66 | 222 |
109 | 223 /** |
321 | 224 * 条件を満たしたら SPE に TaskList を送信する |
225 * 条件1. SPE が持ってた TaskList を終了して、次の TaskList を待ってる | |
226 * 条件2. SPE に送る TaskList に Task がある | |
109 | 227 * |
808 | 228 * SPE で実行終了した speTaskList と |
229 * これから実行する taskListInfo のバッファを入れ替える | |
109 | 230 */ |
231 void | |
232 CellTaskManagerImpl::send_taskList(int id) | |
233 { | |
808 | 234 if (taskListInfo[id]->empty()) return; |
853 | 235 // speTaskList は走り終わった ppe の Task の List. |
236 // taskListInfo はこれから走る Task の List. | |
237 // 交換して実行する | |
808 | 238 TaskListInfoPtr tmp = taskListInfo[id]; |
239 taskListInfo[id] = speTaskList[id]; | |
240 speTaskList[id] = tmp; | |
109 | 241 |
853 | 242 // speTaskList は本来は循環リストなのだけど、実行中は線形リストである。 |
243 // spe の Task が終了した時点でなおす。 | |
809 | 244 tmp->getLast()->next = 0; |
812 | 245 TaskListPtr p = tmp->getFirst(); |
246 speThreads->send_mail(id, 1, (memaddr *)&p); | |
57 | 247 } |
248 | |
672 | 249 void CellTaskManagerImpl::show_profile() { |
250 for (int id = 0; id < machineNum; id++) { | |
923
e015a4e5e4b0
fix DMA/Mail wait profiler
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
897
diff
changeset
|
251 HTaskPtr t = schedTaskManager->create_task(ShowTime,0,0,0,0); |
672 | 252 t->set_cpu((CPU_TYPE)(id+2)); |
253 t->spawn(); | |
254 } | |
255 } | |
256 | |
257 void CellTaskManagerImpl::start_profile() { | |
258 for (int id = 0; id < machineNum; id++) { | |
923
e015a4e5e4b0
fix DMA/Mail wait profiler
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
897
diff
changeset
|
259 HTaskPtr t = schedTaskManager->create_task(StartProfile,0,0,0,0); |
672 | 260 t->set_cpu((CPU_TYPE)(id+2)); |
261 t->spawn(); | |
262 } | |
263 } | |
264 | |
380 | 265 |
109 | 266 #ifdef __CERIUM_CELL__ |
57 | 267 TaskManagerImpl* |
268 create_impl(int num) | |
269 { | |
835 | 270 return new CellTaskManagerImpl(num); |
57 | 271 } |
109 | 272 #endif // __CERIUM_CELL |