Mercurial > hg > Game > Cerium
changeset 1754:f3770342ea9b draft
add file
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 22 Nov 2013 11:17:59 +0900 |
parents | c1711deae8c5 |
children | 27f5b13ff58c |
files | TaskManager/test/UtilizationTest/main.cc TaskManager/test/UtilizationTest/multiply TaskManager/test/UtilizationTest/ppe/Nop.cc TaskManager/test/UtilizationTest/ppe/Nop.h |
diffstat | 4 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/test/UtilizationTest/main.cc Fri Nov 22 11:10:29 2013 +0900 +++ b/TaskManager/test/UtilizationTest/main.cc Fri Nov 22 11:17:59 2013 +0900 @@ -76,8 +76,8 @@ long task_id = 0; HTask* nop = manager->create_task(NOP); - nop->set_cpu(SPE_ANY); - // nop->spawn(); + nop->set_cpu(SPE_0); + nop->spawn(); HTask *multiply = manager->create_task(MULTIPLY_TASK); multiply->set_cpu(SPE_ANY);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/test/UtilizationTest/ppe/Nop.cc Fri Nov 22 11:17:59 2013 +0900 @@ -0,0 +1,11 @@ +#include "SchedTask.h" +#include "Nop.h" +#include "Func.h" + +SchedDefineTask(Nop); + +static int +run(SchedTask* s,void* rbuf,void* wbuf) +{ + return 0; +}