diff example/dependency_task/ppe/Exec.cc @ 467:839e34d0cc3c draft

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 768452fab95e
children 94d82f2c842f
line wrap: on
line diff
--- a/example/dependency_task/ppe/Exec.cc	Thu Oct 01 17:33:58 2009 +0900
+++ b/example/dependency_task/ppe/Exec.cc	Thu Oct 01 19:25:25 2009 +0900
@@ -5,13 +5,13 @@
 /* これは必須 */
 SchedDefineTask(Exec);
 
-int
-Exec::run(void *rbuf, void *wbuf)
+static int
+run(SchedTask *s, void *rbuf, void *wbuf)
 {
-    int *idata = (int*)get_input(rbuf, 0);
-    int *odata = (int*)get_output(wbuf, 0);
-    int length = get_param(0);
-    int calnum = get_param(1);
+    int *idata = (int*)s->get_input(rbuf, 0);
+    int *odata = (int*)s->get_output(wbuf, 0);
+    int length = s->get_param(0);
+    int calnum = s->get_param(1);
 
     for (int i = 0; i < length; i++) {
 	odata[i] = idata[i] + calnum;