diff example/MemList/spe/Hello.cc @ 0:04e28d8d3c6f

first commit
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 08 Nov 2010 01:23:25 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/example/MemList/spe/Hello.cc	Mon Nov 08 01:23:25 2010 +0900
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include "Hello.h"
+#include "Func.h"
+
+/* これは必須 */
+SchedDefineTask(Hello);
+
+static int
+run(SchedTask *smanager, void *rbuf, void *wbuf)
+{
+    int task_id = (long)smanager->get_param(0);
+
+    smanager->printf("[%d] Hello, World!!\n", task_id);
+
+    return 0;
+}