Mercurial > hg > Game > Cerium
diff example/get_segment/ppe/Hello1.cc @ 464:0d64bdb63005 draft
task run is mere C function now.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 30 Sep 2009 10:12:26 +0900 |
parents | a1c670e29cde |
children | c73aff02db67 |
line wrap: on
line diff
--- a/example/get_segment/ppe/Hello1.cc Tue Sep 29 15:45:11 2009 +0900 +++ b/example/get_segment/ppe/Hello1.cc Wed Sep 30 10:12:26 2009 +0900 @@ -8,10 +8,10 @@ #define PP_STORE 3 #define SIZE (4096*sizeof(int)) -int -Hello1::run(SchedTask *smanager, void *rbuf, void *wbuf) +static int +run(SchedTask *smanager, void *rbuf, void *wbuf) { - int task_id = get_param(0); + int task_id = smanager->get_param(0); int *ptr = 0; #if 1 ptr = (int*)smanager->allocate(SIZE);