Mercurial > hg > Members > kono > Cerium
annotate example/renew_task/spe/Renew4.cc @ 192:4f5c64e713c7
add example/renew_task
author | gongo@localhost.localdomain |
---|---|
date | Tue, 13 Jan 2009 10:41:05 +0900 |
parents | |
children | 58fd16298954 81b25e5d5379 |
rev | line source |
---|---|
192 | 1 #include <stdio.h> |
2 #include "Renew4.h" | |
3 #include "SpeProfile.h" | |
4 #include "Func.h" | |
5 | |
6 /* ¤³¤ì¤Ïɬ¿Ü */ | |
7 SchedDefineTask(Renew4); | |
8 | |
9 int | |
10 Renew4::run(void *rbuf, void *wbuf) | |
11 { | |
12 SpeProfile *profile = (SpeProfile*)smanager->global_get(0); | |
13 profile->ProfStop(); | |
14 profile->ProfPrint(); | |
15 | |
16 printf("[SPE] ** running Renew4\n"); | |
17 | |
18 printf("[SPE] ** finish Renew4\n"); | |
19 | |
20 smanager->global_free(0); | |
21 | |
22 return 0; | |
23 } |