Mercurial > hg > Game > Cerium
view example/renew_task/ppe/RenewStart.cc @ 489:1d893ffbc5ff draft
comment
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 06 Oct 2009 15:32:15 +0900 |
parents | 839e34d0cc3c |
children | 278db3ca751d |
line wrap: on
line source
#include <stdio.h> #include "RenewStart.h" #include "Func.h" /* これは必須 */ SchedDefineTask(RenewStart); static int run(SchedTask *s, void *rbuf, void *wbuf) { int id; id = s->get_param(0); s->printf("[PPE] ** running RenewStart %d\n", id); s->printf("[PPE] Create Task : Renew1\n"); TaskPtr nextTask = s->create_task(RENEW1); s->wait_task(nextTask); s->printf("[PPE] ** finish RenewStart\n"); s->printf("\n"); return 0; }