annotate example/hello_array/spe/Hello.cc @ 1615:2c6e9ed9db3b draft

merge
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Tue, 14 May 2013 13:38:17 +0900
parents f0b7eeb72918
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
733
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 #include <stdio.h>
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 #include "SchedTaskArray.h"
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3 #include "Hello.h"
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 #include "Func.h"
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6 /* これは必須 */
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7 SchedDefineTask(Hello);
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9 static int
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
10 run(SchedTask *s,void *rbuf, void *wbuf)
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11 {
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12 // SchedTaskArray *a = (SchedTaskArray *)s;
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
13
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
14 s->printf("Hello World\n");
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
15
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
16 return 0;
f0b7eeb72918 add array sample helloworld
yutaka@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
17 }