annotate example/renew_task/ppe/Renew3.cc @ 619:0decff4e867b

RenewTask removal
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 15 Nov 2009 02:02:30 +0900
parents 44c0bce54dcf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
192
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
1 #include <stdio.h>
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
2 #include "Renew3.h"
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
3 #include "Func.h"
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
4
298
58fd16298954 from EUC to UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 192
diff changeset
5 /* これは必須 */
192
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
6 SchedDefineTask(Renew3);
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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");
619
0decff4e867b RenewTask removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 467
diff changeset
14 HTaskPtr nextTask = s->create_task(RENEW4);
0decff4e867b RenewTask removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 467
diff changeset
15 // s->wait_task(nextTask);
0decff4e867b RenewTask removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 467
diff changeset
16 nextTask->spawn();
192
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
17
467
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("[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
19 s->printf("\n");
192
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
20
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
21 return 0;
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
22 }