Mercurial > hg > Members > kono > Cerium
changeset 1012:bba03a6843ba
fix HelloWorld
author | one@zeus.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 01 Nov 2010 18:27:19 +0900 |
parents | 46c54dd20d1c |
children | 58c3cbf6e3dd |
files | example/HelloWorld/Func.h example/HelloWorld/main.cc example/HelloWorld/ppe/Hello.cc example/HelloWorld/ppe/task_init.cc |
diffstat | 4 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/example/HelloWorld/Func.h Sun Oct 31 18:02:06 2010 +0900 +++ b/example/HelloWorld/Func.h Mon Nov 01 18:27:19 2010 +0900 @@ -1,6 +1,6 @@ enum { #include "SysTasks.h" - HELLO_TASK, + Hello, RUN_FINISH, };
--- a/example/HelloWorld/main.cc Sun Oct 31 18:02:06 2010 +0900 +++ b/example/HelloWorld/main.cc Mon Nov 01 18:27:19 2010 +0900 @@ -38,7 +38,7 @@ * create_task(Task ID); */ - HTask *hello = manager->create_task(HELLO_TASK); + HTask *hello = manager->create_task(Hello); /** * Select CPU
--- a/example/HelloWorld/ppe/Hello.cc Sun Oct 31 18:02:06 2010 +0900 +++ b/example/HelloWorld/ppe/Hello.cc Mon Nov 01 18:27:19 2010 +0900 @@ -4,10 +4,10 @@ #include "Func.h" /* これは必須 */ -SchedDefineTask(Hello); +SchedDefineTask1(Hello,hello); static int -run(SchedTask *smanager, void *rbuf, void *wbuf) +hello(SchedTask *smanager, void *rbuf, void *wbuf) { int task_id = (long)smanager->get_param(0);