Mercurial > hg > Game > Cerium
comparison example/word_count3/ppe/task_init.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 |
comparison
equal
deleted
inserted
replaced
507:823532f263af | 508:217d7c53442b |
---|---|
1 #include "Func.h" | |
2 #include "Scheduler.h" | |
3 | |
4 /* 必ずこの位置に書いて */ | |
5 SchedExternTask(Print); | |
6 SchedExternTask(Exec); | |
7 SchedExternTask(Hello); | |
8 SchedExternTask(Wait); | |
9 | |
10 /** | |
11 * この関数は ../spe/spe-main と違って | |
12 * 自分で呼び出せばいい関数なので | |
13 * 好きな関数名でおk (SchedRegisterTask は必須) | |
14 */ | |
15 void | |
16 task_init(void) | |
17 { | |
18 SchedRegisterTask(PRINT_TASK, Print); | |
19 SchedRegisterTask(EXEC_TASK, Exec); | |
20 SchedRegisterTask(HELLO_TASK, Hello); | |
21 SchedRegisterTask(WAIT_TASK, Wait); | |
22 } |