Mercurial > hg > Members > kono > Cerium
annotate Renderer/Engine/show_time.cc @ 760:24a37fe8419a
first of all commit, not work Rendering/Test/create_task
author | hiroki |
---|---|
date | Thu, 04 Feb 2010 14:46:09 +0900 |
parents | 4e44147d78ee |
children |
rev | line source |
---|---|
507 | 1 #include <stdio.h> |
2 #include "TaskManager.h" | |
3 #include "Func.h" | |
4 | |
5 void | |
6 show_time() | |
7 { | |
8 /* | |
9 HTaskPtr show; | |
10 HTaskPtr pre_show; | |
11 */ | |
12 /* | |
614
4e44147d78ee
remove uncessary Task Name definision
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
507
diff
changeset
|
13 show = manager->create_task(ShowTime); |
507 | 14 show->set_cpu(SPE_0); |
15 show->spawn(); | |
16 printf("testですよ\n"); | |
17 */ | |
18 | |
19 /* | |
614
4e44147d78ee
remove uncessary Task Name definision
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
507
diff
changeset
|
20 pre_show = manager->create_task(ShowTime); |
507 | 21 pre_show->set_cpu((CPU_TYPE)((int)SPE_0)); |
22 pre_show->spawn(); | |
23 | |
24 for (int i = 1; i < 6; i++) { | |
614
4e44147d78ee
remove uncessary Task Name definision
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
507
diff
changeset
|
25 show = manager->create_task(ShowTime); |
507 | 26 show->set_cpu((CPU_TYPE)((int)SPE_0 + i)); |
27 show->wait_for(pre_show); | |
28 show->spawn(); | |
29 pre_show = show; | |
30 } | |
31 */ | |
32 } |