Mercurial > hg > Game > Cerium
changeset 1624:c0482a63d811 draft
fix
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 28 May 2013 17:57:33 +0900 |
parents | f82467ce38f3 |
children | 6ff0c34c8a3c |
files | TaskManager/Cell/CellTaskManagerImpl.cc TaskManager/kernel/ppe/CpuThreads.cc |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc Fri May 24 09:48:30 2013 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.cc Tue May 28 17:57:33 2013 +0900 @@ -241,7 +241,7 @@ #ifdef TASK_LIST_MAIL // multi dimensionだったらカウントする TaskListPtr list = (TaskListPtr)data; - if (list->self->flag.dim_count-- == 0) + if (--list->self->flag.dim_count == 0) check_task_list_finish(schedTaskManager, list, waitTaskQueue); #else // 終了したタスク(PPEにあるのでアドレス)
--- a/TaskManager/kernel/ppe/CpuThreads.cc Fri May 24 09:48:30 2013 +0900 +++ b/TaskManager/kernel/ppe/CpuThreads.cc Tue May 28 17:57:33 2013 +0900 @@ -101,6 +101,7 @@ void CpuThreads::spawn_task(int id, TaskListPtr p) { + p->self->flag.dim_count = 1; if (p->dim>0) { int dim_count = (p->x)*(p->y)*(p->z); if (cpu_num < dim_count) {