Mercurial > hg > Game > Cerium
annotate example/word_count3/spe/spe-main.cc @ 508:217d7c53442b draft
add word_count3
author | yutaka@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 20 Oct 2009 16:28:16 +0900 |
parents | |
children |
rev | line source |
---|---|
508 | 1 #include "Func.h" |
2 #include "Scheduler.h" | |
3 | |
4 SchedExternTask(Hello); | |
5 SchedExternTask(Wait); | |
6 SchedExternTask(Exec); | |
7 SchedExternTask(Print); | |
8 | |
9 /** | |
10 * この関数は SpeScheduler から呼ばれるので | |
11 * 必ずこの関数名でお願いします。 | |
12 */ | |
13 void | |
14 task_init(Scheduler *s) | |
15 { | |
16 SchedRegisterTask(HELLO_TASK, Hello); | |
17 SchedRegisterTask(WAIT_TASK, Wait); | |
18 SchedRegisterTask(EXEC_TASK, Exec); | |
19 SchedRegisterTask(PRINT_TASK, Print); | |
20 } |