diff example/HelloWorld/ppe/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 60aa3f241b10
line wrap: on
line diff
--- a/example/HelloWorld/ppe/Hello.cc	Thu Oct 01 17:33:58 2009 +0900
+++ b/example/HelloWorld/ppe/Hello.cc	Thu Oct 01 19:25:25 2009 +0900
@@ -6,12 +6,12 @@
 /* これは必須 */
 SchedDefineTask(Hello);
 
-int
-Hello::run(void *rbuf, void *wbuf)
+static int
+run(SchedTask *smanager, void *rbuf, void *wbuf)
 {
-    int task_id = get_param(0);
+    int task_id = smanager->get_param(0);
 
-    printf("[%d] Hello, World!!\n", task_id);
+    smanager->printf("[%d] Hello, World!!\n", task_id);
 
     return 0;
 }