annotate example/renew_task/spe/Renew1.cc @ 298:58fd16298954

from EUC to UTF-8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 07 Jun 2009 15:17:41 +0900
parents 4f5c64e713c7
children c59d8927c4d1
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 "Renew1.h"
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
3 #include "SpeProfile.h"
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
4 #include "Func.h"
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
5
298
58fd16298954 from EUC to UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 192
diff changeset
6 /* これは必須 */
192
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
7 SchedDefineTask(Renew1);
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
8
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
9 int
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
10 Renew1::run(void *rbuf, void *wbuf)
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
11 {
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
12 SpeProfile *profile = (SpeProfile*)smanager->global_get(0);
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
13 profile->ProfStop();
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
14 profile->ProfPrint();
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
15
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
16 printf("[SPE] ** running Renew1\n");
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
17
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
18 printf("[SPE] Create Task : Renew2\n");
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
19 TaskPtr nextTask = smanager->create_task(RENEW2);
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
20 smanager->wait_task(nextTask);
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
21
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
22 printf("[SPE] ** finish Renew1\n\n");
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
23
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
24 return 0;
4f5c64e713c7 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
25 }