Mercurial > hg > Members > kono > Cerium
annotate example/renew_task/ppe/Renew3.cc @ 467:44c0bce54dcf
fix all examples. test_render is not working now.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 01 Oct 2009 19:25:25 +0900 |
parents | b89ba1d96fff |
children | 0decff4e867b |
rev | line source |
---|---|
192 | 1 #include <stdio.h> |
2 #include "Renew3.h" | |
3 #include "Func.h" | |
4 | |
298 | 5 /* これは必須 */ |
192 | 6 SchedDefineTask(Renew3); |
7 | |
467
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
8 static int |
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
9 run(SchedTask *s, void *rbuf, void *wbuf) |
192 | 10 { |
467
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
11 s->printf("[PPE] ** running Renew3\n"); |
192 | 12 |
467
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
13 s->printf("[PPE] Create Task : Renew4\n"); |
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
14 TaskPtr nextTask = s->create_task(RENEW4); |
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
15 s->wait_task(nextTask); |
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] ** finish Renew3\n"); |
44c0bce54dcf
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
18 s->printf("\n"); |
192 | 19 |
20 return 0; | |
21 } |