Mercurial > hg > Members > kono > Cerium
comparison 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 |
comparison
equal
deleted
inserted
replaced
1017:6a2c22cabe10 | 1021:f8e9c985e2a8 |
---|---|
1 #include <stdio.h> | 1 #include <stdio.h> |
2 #include "Hello.h" | 2 #include "Hello.h" |
3 #include "Func.h" | 3 #include "Func.h" |
4 | 4 |
5 /* これは必須 */ | 5 /* これは必須 */ |
6 SchedDefineTask(Hello); | 6 SchedDefineTask1(Hello,hello); |
7 | 7 |
8 static int | 8 static int |
9 run(SchedTask *smanager, void *rbuf, void *wbuf) | 9 hello(SchedTask *smanager, void *rbuf, void *wbuf) |
10 { | 10 { |
11 long task_id = (long)smanager->get_param(0); | 11 long task_id = (long)smanager->get_param(0); |
12 | 12 |
13 smanager->printf("[%ld] Hello, World!!\n", task_id); | 13 smanager->printf("[%ld] Hello, World!!\n", task_id); |
14 | 14 |