annotate example/renew_task/spe/Renew1.cc @ 310:c59d8927c4d1

remove smanager
author e065746@localhost.localdomain
date Mon, 08 Jun 2009 20:31:29 +0900
parents 58fd16298954
children b89ba1d96fff
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 {
310
c59d8927c4d1 remove smanager
e065746@localhost.localdomain
parents: 298
diff changeset
12 SpeProfile *profile = (SpeProfile*)global_get(0);
192
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");
310
c59d8927c4d1 remove smanager
e065746@localhost.localdomain
parents: 298
diff changeset
19 TaskPtr nextTask = create_task(RENEW2);
c59d8927c4d1 remove smanager
e065746@localhost.localdomain
parents: 298
diff changeset
20 wait_task(nextTask);
192
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 }