annotate example/many_task/spe/spe-main.cc @ 674:07351a5a51c9 draft

fix many task example (sort). Dummy task is now system supported.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 06 Dec 2009 00:54:10 +0900
parents 839e34d0cc3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #include "Func.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #include "Scheduler.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 SchedExternTask(QuickSort);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 /**
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7 * この関数は SpeScheduler から呼ばれるので
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 * 必ずこの関数名でお願いします。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 */
291
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
10
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
11 static void
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
12 spe_debug()
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
13 {
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
14 }
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
15
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 void
467
839e34d0cc3c fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 291
diff changeset
17 task_init(Scheduler *s)
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 {
291
d7803cea25a3 document
kono@localhost.localdomain
parents: 109
diff changeset
19 spe_debug();
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 SchedRegisterTask(QUICK_SORT, QuickSort);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 }