Mercurial > hg > Members > kono > Cerium
annotate 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 |
rev | line source |
---|---|
109 | 1 #include <stdio.h> |
2 #include "SchedTask.h" | |
3 #include "Hello.h" | |
4 #include "Func.h" | |
5 | |
298 | 6 /* これは必須 */ |
1012 | 7 SchedDefineTask1(Hello,hello); |
109 | 8 |
467
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
298
diff
changeset
|
9 static int |
1012 | 10 hello(SchedTask *smanager, void *rbuf, void *wbuf) |
109 | 11 { |
625
60aa3f241b10
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
467
diff
changeset
|
12 int task_id = (long)smanager->get_param(0); |
109 | 13 |
467
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
298
diff
changeset
|
14 smanager->printf("[%d] Hello, World!!\n", task_id); |
109 | 15 |
16 return 0; | |
17 } |