Mercurial > hg > Game > Cerium
view example/renew_task/ppe/Renew2.cc @ 2069:26aa08c9a1de draft default tip
cuda example fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 12 Feb 2017 10:04:55 +0900 |
parents | 278db3ca751d |
children |
line wrap: on
line source
#include <stdio.h> #include "Renew2.h" #include "Func.h" /* これは必須 */ SchedDefineTask(Renew2); static int run(SchedTask *s, void *rbuf, void *wbuf) { s->printf("[PPE] ** running Renew2\n"); s->printf("[PPE] Create Task : Renew3\n"); HTaskPtr nextTask = s->create_task(RENEW3); nextTask->spawn(); // s->wait_task(nextTask); s->printf("[PPE] ** finish Renew2\n"); s->printf("\n"); return 0; }