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
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 "RenewStart.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(RenewStart);
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
7
487
df499063ccda comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 467
diff changeset
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
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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
df499063ccda comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 467
diff changeset
14
df499063ccda comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 467
diff changeset
15 s->printf("[PPE] ** running RenewStart %d\n", id);
192
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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
0decff4e867b RenewTask removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 487
diff changeset
18 HTaskPtr nextTask = s->create_task(RENEW1);
0decff4e867b RenewTask removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 487
diff changeset
19 nextTask->spawn();
0decff4e867b RenewTask removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 487
diff changeset
20 // s->wait_task(nextTask);
192
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
24
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
25 return 0;
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
26 }