comparison example/renew_task/ppe/RenewStart.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 "RenewStart.h"
3 #include "Func.h"
4
5 /* これは必須 */
6 SchedDefineTask(RenewStart);
7
8
9 static int
10 run(SchedTask *s, void *rbuf, void *wbuf)
11 {
12 long id;
13 id = (long)s->get_param(0);
14
15 s->printf("[PPE] ** running RenewStart %d\n", id);
16
17 s->printf("[PPE] Create Task : Renew1\n");
18 HTaskPtr nextTask = s->create_task(RENEW1);
19 nextTask->spawn();
20 // s->wait_task(nextTask);
21
22 s->printf("[PPE] ** finish RenewStart\n");
23 s->printf("\n");
24
25 return 0;
26 }