annotate example/HelloWorld/spe/Hello.cc @ 898:302ebfc75a79 draft

merge
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 16 Jul 2010 19:00:49 +0900
parents 0e91ddaad798
children 47ca99c5cf84
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #include <stdio.h>
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #include "Hello.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 #include "Func.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4
298
768452fab95e from EUC to UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
5 /* これは必須 */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 SchedDefineTask(Hello);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
467
839e34d0cc3c fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 426
diff changeset
8 static int
839e34d0cc3c fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 426
diff changeset
9 run(SchedTask *smanager, void *rbuf, void *wbuf)
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 {
626
0e91ddaad798 64bit mode compatibility on Cell
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 467
diff changeset
11 long task_id = (long)smanager->get_param(0);
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12
626
0e91ddaad798 64bit mode compatibility on Cell
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 467
diff changeset
13 smanager->printf("[%ld] Hello, World!!\n", task_id);
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 return 0;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 }