Mercurial > hg > Members > kono > Cerium
view example/renew_task/spe/RenewStart.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 "RenewStart.h" #include "SpeProfile.h" #include "Func.h" /* これは必須 */ SchedDefineTask(RenewStart); int RenewStart::run(void *rbuf, void *wbuf) { printf("[SPE] ** running RenewStart\n"); void *tmp = global_alloc(sizeof(SpeProfile), 0); SpeProfile *profile = new (tmp) SpeProfile; printf("[SPE] Create Task : Renew1\n"); TaskPtr nextTask = create_task(RENEW1); wait_task(nextTask); printf("[SPE] ** finish RenewStart\n\n"); profile->ProfStart(); return 0; }