Mercurial > hg > Members > kono > Cerium
comparison example/post_function/spe/Hello.cc @ 467:44c0bce54dcf
fix all examples. test_render is not working now.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 01 Oct 2009 19:25:25 +0900 |
parents | 58fd16298954 |
children | ab866bc8a624 |
comparison
equal
deleted
inserted
replaced
466:4fa8760e18c2 | 467:44c0bce54dcf |
---|---|
4 #include "Func.h" | 4 #include "Func.h" |
5 | 5 |
6 /* これは必須 */ | 6 /* これは必須 */ |
7 SchedDefineTask(Hello); | 7 SchedDefineTask(Hello); |
8 | 8 |
9 int | 9 static int |
10 Hello::run(void *rbuf, void *wbuf) | 10 run(SchedTask *s, void *rbuf, void *wbuf) |
11 { | 11 { |
12 int id = get_param(0); | 12 int id = s->get_param(0); |
13 | 13 |
14 printf("Hello, World!! post_func output %d\n", id); | 14 printf("Hello, World!! post_func output %d\n", id); |
15 | 15 |
16 return 0; | 16 return 0; |
17 } | 17 } |