diff example/renew_task/ppe/Renew4.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 (2009-10-01)
parents 58fd16298954
children
line wrap: on
line diff
--- a/example/renew_task/ppe/Renew4.cc	Thu Oct 01 17:33:58 2009 +0900
+++ b/example/renew_task/ppe/Renew4.cc	Thu Oct 01 19:25:25 2009 +0900
@@ -5,12 +5,12 @@
 /* これは必須 */
 SchedDefineTask(Renew4);
 
-int
-Renew4::run(void *rbuf, void *wbuf)
+static int
+run(SchedTask *s, void *rbuf, void *wbuf)
 {
-    printf("[PPE] ** running Renew4\n");
+    s->printf("[PPE] ** running Renew4\n");
     
-    printf("[PPE] ** finish  Renew4\n");
+    s->printf("[PPE] ** finish  Renew4\n");
 
     return 0;
 }