Mercurial > hg > Members > kono > Cerium
annotate example/HelloWorld/spe/Hello.cc @ 1021:f8e9c985e2a8
use MailManager
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 07 Nov 2010 22:10:29 +0900 |
parents | ab866bc8a624 |
children |
rev | line source |
---|---|
109 | 1 #include <stdio.h> |
2 #include "Hello.h" | |
3 #include "Func.h" | |
4 | |
298 | 5 /* これは必須 */ |
1021 | 6 SchedDefineTask1(Hello,hello); |
109 | 7 |
467
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
426
diff
changeset
|
8 static int |
1021 | 9 hello(SchedTask *smanager, void *rbuf, void *wbuf) |
109 | 10 { |
626
ab866bc8a624
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 | 12 |
626
ab866bc8a624
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 | 14 |
15 return 0; | |
16 } |