Mercurial > hg > Members > kono > Cerium
annotate example/dependency_task/ppe/task_init.cc @ 638:671fca057ad3
hmmmm
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 18:18:20 +0900 |
parents | 58fd16298954 |
children |
rev | line source |
---|---|
109 | 1 #include "Func.h" |
2 #include "Scheduler.h" | |
3 | |
298 | 4 /* 必ずこの位置に書いて */ |
109 | 5 SchedExternTask(Print); |
6 SchedExternTask(Exec); | |
7 SchedExternTask(RunFinish); | |
8 | |
9 /** | |
298 | 10 * この関数は ../spe/spe-main と違って |
11 * 自分で呼び出せばいい関数なので | |
12 * 好きな関数名でおk (SchedRegisterTask は必須) | |
109 | 13 */ |
14 void | |
15 task_init(void) | |
16 { | |
17 SchedRegisterTask(TASK_PRINT, Print); | |
18 SchedRegisterTask(TASK_EXEC, Exec); | |
19 SchedRegisterTask(RUN_FINISH, RunFinish); | |
20 } |