Mercurial > hg > Members > kono > Cerium
annotate example/renew_task/ppe/RenewStart.cc @ 818:19c6cdeb23d6
too few template-parameter-lists
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 May 2010 10:55:25 +0900 |
parents | 60aa3f241b10 |
children |
rev | line source |
---|---|
192 | 1 #include <stdio.h> |
2 #include "RenewStart.h" | |
3 #include "Func.h" | |
4 | |
298 | 5 /* これは必須 */ |
192 | 6 SchedDefineTask(RenewStart); |
7 | |
487 | 8 |
467
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
9 static int |
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
10 run(SchedTask *s, void *rbuf, void *wbuf) |
192 | 11 { |
625
60aa3f241b10
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
619
diff
changeset
|
12 long id; |
60aa3f241b10
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
619
diff
changeset
|
13 id = (long)s->get_param(0); |
487 | 14 |
15 s->printf("[PPE] ** running RenewStart %d\n", id); | |
192 | 16 |
467
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
17 s->printf("[PPE] Create Task : Renew1\n"); |
619 | 18 HTaskPtr nextTask = s->create_task(RENEW1); |
19 nextTask->spawn(); | |
20 // s->wait_task(nextTask); | |
192 | 21 |
467
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
22 s->printf("[PPE] ** finish RenewStart\n"); |
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
23 s->printf("\n"); |
192 | 24 |
25 return 0; | |
26 } |