annotate example/renew_task/spe/Renew3.cc @ 898:302ebfc75a79 draft

merge
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 16 Jul 2010 19:00:49 +0900
parents 0e91ddaad798
children
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 "Renew3.h"
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
3 #include "SpeProfile.h"
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
4 #include "Func.h"
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
5
298
768452fab95e from EUC to UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 192
diff changeset
6 /* これは必須 */
192
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
7 SchedDefineTask(Renew3);
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
13 profile->ProfStop();
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
14 profile->ProfPrint();
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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 Renew3\n");
192
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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 : Renew4\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(RENEW4);
0e91ddaad798 64bit mode compatibility on Cell
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 467
diff changeset
20 nextTask->spawn();
192
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
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 Renew3\n");
839e34d0cc3c fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 356
diff changeset
23 s->printf("\n");
192
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
24
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
25 profile->ProfStart();
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
26
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
27 return 0;
6694da357750 add example/renew_task
gongo@localhost.localdomain
parents:
diff changeset
28 }