Mercurial > hg > Game > Cerium
view example/renew_task/spe/Renew1.cc @ 538:5641d121818e draft
code_load in read()
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 02:50:01 +0900 |
parents | fdc3e30de9d3 |
children | 0e91ddaad798 |
line wrap: on
line source
#include <stdio.h> #include "Renew1.h" #include "SpeProfile.h" #include "Func.h" /* これは必須 */ SchedDefineTask(Renew1); static int run(SchedTask *s, void *rbuf, void *wbuf) { SpeProfile *profile = (SpeProfile*)s->global_get(0); profile->ProfStop(); profile->ProfPrint(); int *test_num = (int *)s->get_input(rbuf,0); int *local_num = (int *)s->get_param(0); s->printf("[SPE] Renew1 test_num = %d\n", *test_num); s->printf("[SPE] Renew1 local_num = %d\n", *local_num); s->printf("[SPE] ** running Renew1\n"); s->printf("[SPE] Create Task : Renew2\n"); TaskPtr nextTask = s->create_task(RENEW2); s->wait_task(nextTask); s->printf("[SPE] ** finish Renew1\n\n"); return 0; }