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