Mercurial > hg > Members > kono > Cerium
comparison example/word_count_test/ppe/task_init.cc @ 664:7405d92733a8
word count
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 03 Dec 2009 00:20:28 +0900 |
parents | 68f0253f5a71 |
children |
comparison
equal
deleted
inserted
replaced
663:8a807e2f64f8 | 664:7405d92733a8 |
---|---|
2 #include "Scheduler.h" | 2 #include "Scheduler.h" |
3 | 3 |
4 /* 必ずこの位置に書いて */ | 4 /* 必ずこの位置に書いて */ |
5 SchedExternTask(Print); | 5 SchedExternTask(Print); |
6 SchedExternTask(Exec); | 6 SchedExternTask(Exec); |
7 SchedExternTask(RUN_TASK_BLOCKS); | |
7 SchedExternTask(RunFinish); | 8 SchedExternTask(RunFinish); |
8 | 9 |
9 /** | 10 /** |
10 * この関数は ../spe/spe-main と違って | 11 * この関数は ../spe/spe-main と違って |
11 * 自分で呼び出せばいい関数なので | 12 * 自分で呼び出せばいい関数なので |
14 void | 15 void |
15 task_init(void) | 16 task_init(void) |
16 { | 17 { |
17 SchedRegisterTask(TASK_PRINT, Print); | 18 SchedRegisterTask(TASK_PRINT, Print); |
18 SchedRegisterTask(TASK_EXEC, Exec); | 19 SchedRegisterTask(TASK_EXEC, Exec); |
20 SchedRegister(RUN_TASK_BLOCKS); | |
19 SchedRegisterTask(RUN_FINISH, RunFinish); | 21 SchedRegisterTask(RUN_FINISH, RunFinish); |
20 } | 22 } |