Mercurial > hg > Members > kono > Cerium
diff example/renew_task/spe/Renew4.cc @ 467:44c0bce54dcf
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 | b89ba1d96fff |
children |
line wrap: on
line diff
--- a/example/renew_task/spe/Renew4.cc Thu Oct 01 17:33:58 2009 +0900 +++ b/example/renew_task/spe/Renew4.cc Thu Oct 01 19:25:25 2009 +0900 @@ -6,18 +6,18 @@ /* これは必須 */ SchedDefineTask(Renew4); -int -Renew4::run(void *rbuf, void *wbuf) +static int +run(SchedTask *s, void *rbuf, void *wbuf) { - SpeProfile *profile = (SpeProfile*) global_get(0); + SpeProfile *profile = (SpeProfile*) s->global_get(0); profile->ProfStop(); profile->ProfPrint(); - printf("[SPE] ** running Renew4\n"); + s->printf("[SPE] ** running Renew4\n"); - printf("[SPE] ** finish Renew4\n"); + s->printf("[SPE] ** finish Renew4\n"); - global_free(0); + s->global_free(0); return 0; }