Mercurial > hg > Game > Cerium
annotate example/renew_task/spe/Renew2.cc @ 2054:2e7a6f40672f draft
add param(4) in FileMapReduce.cc
author | masa |
---|---|
date | Fri, 29 Jan 2016 15:56:28 +0900 |
parents | 0e91ddaad798 |
children |
rev | line source |
---|---|
192 | 1 #include <stdio.h> |
2 #include "Renew2.h" | |
3 #include "SpeProfile.h" | |
4 #include "Func.h" | |
5 | |
298 | 6 /* これは必須 */ |
192 | 7 SchedDefineTask(Renew2); |
8 | |
467
839e34d0cc3c
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
9 static int |
839e34d0cc3c
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 | 11 { |
467
839e34d0cc3c
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
12 SpeProfile *profile = (SpeProfile*) s->global_get(0); |
192 | 13 profile->ProfStop(); |
14 profile->ProfPrint(); | |
15 | |
467
839e34d0cc3c
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
16 s->printf("[SPE] ** running Renew2\n"); |
192 | 17 |
467
839e34d0cc3c
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
18 s->printf("[SPE] Create Task : Renew3\n"); |
626
0e91ddaad798
64bit mode compatibility on Cell
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
467
diff
changeset
|
19 HTaskPtr nextTask = s->create_task(RENEW3); |
0e91ddaad798
64bit mode compatibility on Cell
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
467
diff
changeset
|
20 nextTask->spawn(); |
192 | 21 |
467
839e34d0cc3c
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
356
diff
changeset
|
22 s->printf("[SPE] ** finish Renew2\n\n"); |
192 | 23 |
24 profile->ProfStart(); | |
25 | |
26 return 0; | |
27 } |