Mercurial > hg > Members > kono > Cerium
changeset 335:7a42d46cc54e
change show_time.cpp
author | e065746@localhost.localdomain |
---|---|
date | Sun, 14 Jun 2009 22:24:34 +0900 |
parents | 20f2459041cb |
children | e9f402fab133 |
files | TaskManager/Test/test_render/show_time.cpp TaskManager/Test/test_render/spe/ShowTime.cpp TaskManager/Test/test_render/task/ShowTime.cpp |
diffstat | 3 files changed, 17 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/show_time.cpp Sat Jun 13 19:11:58 2009 +0900 +++ b/TaskManager/Test/test_render/show_time.cpp Sun Jun 14 22:24:34 2009 +0900 @@ -6,10 +6,24 @@ show_time() { HTaskPtr show; - + HTaskPtr pre_show; + /* show = manager->create_task(SHOW_TIME); show->set_cpu(SPE_0); show->spawn(); printf("testですよ\n"); + */ + + pre_show = manager->create_task(SHOW_TIME); + pre_show->set_cpu((CPU_TYPE)((int)SPE_0)); + pre_show->spawn(); + + for (int i = 1; i < 6; i++) { + show = manager->create_task(SHOW_TIME); + show->set_cpu((CPU_TYPE)((int)SPE_0 + i)); + show->wait_for(pre_show); + show->spawn(); + pre_show = show; + } }
--- a/TaskManager/Test/test_render/spe/ShowTime.cpp Sat Jun 13 19:11:58 2009 +0900 +++ b/TaskManager/Test/test_render/spe/ShowTime.cpp Sun Jun 14 22:24:34 2009 +0900 @@ -10,7 +10,7 @@ * ここで show_dma_wait() を呼びたい */ smanager->show_dma_wait(); - printf("Show Time !\n"); + //printf("Show Time !\n"); return 0; }