Mercurial > hg > Game > Cerium
view example/renew_task/spe/RenewStart.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 | 5b995810b86a |
children | afb37b9a3424 |
line wrap: on
line source
#include <stdio.h> #include "RenewStart.h" #include "SpeProfile.h" #include "Func.h" /* これは必須 */ SchedDefineTask(RenewStart); static int run(SchedTask *s, void *rbuf, void *wbuf) { s->printf("[SPE] ** running RenewStart\n"); void *tmp = s->global_alloc(sizeof(SpeProfile), 0); // overlay で動くの? SpeProfile *profile = new (tmp) SpeProfile; s->printf("[SPE] Create Task : Renew1\n"); TaskPtr nextTask = s->create_task(RENEW1); s->wait_task(nextTask); s->printf("[SPE] ** finish RenewStart\n\n"); profile->ProfStart(); return 0; }