Mercurial > hg > Members > e085722 > Cerium
comparison example/renew_task/ppe/Renew1.cc @ 0:04e28d8d3c6f
first commit
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Nov 2010 01:23:25 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:04e28d8d3c6f |
---|---|
1 #include <stdio.h> | |
2 #include "Renew1.h" | |
3 #include "Func.h" | |
4 | |
5 /* これは必須 */ | |
6 SchedDefineTask(Renew1); | |
7 | |
8 static int | |
9 run(SchedTask *s, void *rbuf, void *wbuf) | |
10 { | |
11 s->printf("[PPE] ** running Renew1\n"); | |
12 | |
13 s->printf("[PPE] Create Task : Renew2\n"); | |
14 HTaskPtr nextTask = s->create_task(RENEW2); | |
15 // s->wait_task(nextTask); | |
16 nextTask->spawn(); | |
17 | |
18 s->printf("[PPE] ** finish Renew1\n"); | |
19 s->printf("\n"); | |
20 | |
21 return 0; | |
22 } |