Mercurial > hg > Members > kono > Cerium
comparison example/HelloWorld/ppe/Hello.cc @ 1012:bba03a6843ba
fix HelloWorld
author | one@zeus.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 01 Nov 2010 18:27:19 +0900 |
parents | 60aa3f241b10 |
children |
comparison
equal
deleted
inserted
replaced
1011:46c54dd20d1c | 1012:bba03a6843ba |
---|---|
2 #include "SchedTask.h" | 2 #include "SchedTask.h" |
3 #include "Hello.h" | 3 #include "Hello.h" |
4 #include "Func.h" | 4 #include "Func.h" |
5 | 5 |
6 /* これは必須 */ | 6 /* これは必須 */ |
7 SchedDefineTask(Hello); | 7 SchedDefineTask1(Hello,hello); |
8 | 8 |
9 static int | 9 static int |
10 run(SchedTask *smanager, void *rbuf, void *wbuf) | 10 hello(SchedTask *smanager, void *rbuf, void *wbuf) |
11 { | 11 { |
12 int task_id = (long)smanager->get_param(0); | 12 int task_id = (long)smanager->get_param(0); |
13 | 13 |
14 smanager->printf("[%d] Hello, World!!\n", task_id); | 14 smanager->printf("[%d] Hello, World!!\n", task_id); |
15 | 15 |