diff example/dependency_task/ppe/Print.cc @ 109:028ffc9c0375 draft

Cerium cvs version
author gongo@gendarme.local
date Wed, 12 Nov 2008 17:39:33 +0900
parents
children 768452fab95e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/example/dependency_task/ppe/Print.cc	Wed Nov 12 17:39:33 2008 +0900
@@ -0,0 +1,22 @@
+#include <stdio.h>
+#include <string.h>
+#include "Print.h"
+#include "Func.h"
+
+/* ¤³¤ì¤Ïɬ¿Ü */
+SchedDefineTask(Print);
+
+int
+Print::run(void *rbuf, void *wbuf)
+{
+    int *idata = (int*)get_input(rbuf, 0);
+    int length = get_param(0);
+
+    printf("[TASK_PRINT]\n");
+    for (int i = 0; i < length; i++) {
+	printf("%2d ", idata[i]);
+    }
+    printf("\n");
+
+    return 0;
+}