Mercurial > hg > Members > kono > Cerium
view example/renew_task/spe/Renew2.cc @ 625:60aa3f241b10
64bit mode worked on Mac OS X.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Nov 2009 10:59:55 +0900 |
parents | 44c0bce54dcf |
children | ab866bc8a624 |
line wrap: on
line source
#include <stdio.h> #include "Renew2.h" #include "SpeProfile.h" #include "Func.h" /* これは必須 */ SchedDefineTask(Renew2); static int run(SchedTask *s, void *rbuf, void *wbuf) { SpeProfile *profile = (SpeProfile*) s->global_get(0); profile->ProfStop(); profile->ProfPrint(); s->printf("[SPE] ** running Renew2\n"); s->printf("[SPE] Create Task : Renew3\n"); TaskPtr nextTask = s->create_task(RENEW3); s->wait_task(nextTask); s->printf("[SPE] ** finish Renew2\n\n"); profile->ProfStart(); return 0; }