annotate example/renew_task/ppe/Renew2.cc @ 298:768452fab95e draft

from EUC to UTF-8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 07 Jun 2009 15:17:41 +0900
parents 6694da357750
children 364abe879376
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
192
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
1 #include <stdio.h>
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
2 #include "Renew2.h"
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
3 #include "Func.h"
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
4
298
768452fab95e from EUC to UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 192
diff changeset
5 /* これは必須 */
192
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
6 SchedDefineTask(Renew2);
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
7
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
8 int
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
9 Renew2::run(void *rbuf, void *wbuf)
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
10 {
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
11 printf("[PPE] ** running Renew2\n");
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
12
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
13 printf("[PPE] Create Task : Renew3\n");
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
14 TaskPtr nextTask = smanager->create_task(RENEW3);
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
15 smanager->wait_task(nextTask);
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
16
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
17 printf("[PPE] ** finish Renew2\n");
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
18 printf("\n");
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
19
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
20 return 0;
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
21 }