Mercurial > hg > Members > kono > Cerium
comparison example/HelloWorld/ppe/Hello.cc @ 625:60aa3f241b10
64bit mode worked on Mac OS X.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Nov 2009 10:59:55 +0900 |
parents | 44c0bce54dcf |
children | bba03a6843ba |
comparison
equal
deleted
inserted
replaced
624:c7b5c99252ad | 625:60aa3f241b10 |
---|---|
7 SchedDefineTask(Hello); | 7 SchedDefineTask(Hello); |
8 | 8 |
9 static int | 9 static int |
10 run(SchedTask *smanager, void *rbuf, void *wbuf) | 10 run(SchedTask *smanager, void *rbuf, void *wbuf) |
11 { | 11 { |
12 int task_id = smanager->get_param(0); | 12 int task_id = (long)smanager->get_param(0); |
13 | 13 |
14 smanager->printf("[%d] Hello, World!!\n", task_id); | 14 smanager->printf("[%d] Hello, World!!\n", task_id); |
15 | 15 |
16 return 0; | 16 return 0; |
17 } | 17 } |