Mercurial > hg > Members > kono > Cerium
view example/renew_task/spe/Renew2.cc @ 356:b89ba1d96fff
merge heads
author | aaa |
---|---|
date | Fri, 17 Jul 2009 15:04:02 +0900 |
parents | 81b25e5d5379 c59d8927c4d1 |
children | 44c0bce54dcf |
line wrap: on
line source
#include <stdio.h> #include "Renew2.h" #include "SpeProfile.h" #include "Func.h" /* これは必須 */ SchedDefineTask(Renew2); int Renew2::run(void *rbuf, void *wbuf) { SpeProfile *profile = (SpeProfile*) global_get(0); profile->ProfStop(); profile->ProfPrint(); printf("[SPE] ** running Renew2\n"); printf("[SPE] Create Task : Renew3\n"); TaskPtr nextTask = create_task(RENEW3); wait_task(nextTask); printf("[SPE] ** finish Renew2\n\n"); profile->ProfStart(); return 0; }