Mercurial > hg > Game > Cerium
diff example/dependency_task/ppe/Print.cc @ 467:839e34d0cc3c draft
fix all examples. test_render is not working now.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 01 Oct 2009 19:25:25 +0900 |
parents | 768452fab95e |
children | 94d82f2c842f |
line wrap: on
line diff
--- a/example/dependency_task/ppe/Print.cc Thu Oct 01 17:33:58 2009 +0900 +++ b/example/dependency_task/ppe/Print.cc Thu Oct 01 19:25:25 2009 +0900 @@ -6,17 +6,17 @@ /* これは必須 */ SchedDefineTask(Print); -int -Print::run(void *rbuf, void *wbuf) +static int +run(SchedTask *s, void *rbuf, void *wbuf) { - int *idata = (int*)get_input(rbuf, 0); - int length = get_param(0); + int *idata = (int*)s->get_input(rbuf, 0); + int length = s->get_param(0); - printf("[TASK_PRINT]\n"); + s->printf("[TASK_PRINT]\n"); for (int i = 0; i < length; i++) { - printf("%2d ", idata[i]); + s->printf("%2d ", idata[i]); } - printf("\n"); + s->printf("\n"); return 0; }