Mercurial > hg > Game > Cerium
changeset 722:55d70a61dedc draft
CellTaskManager fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 19 Dec 2009 12:20:20 +0900 |
parents | a0cfe7b28882 |
children | 250104f42276 |
files | TaskManager/Cell/CellTaskManagerImpl.cc TaskManager/Cell/CellTaskManagerImpl.h |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc Sat Dec 19 12:12:09 2009 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.cc Sat Dec 19 12:20:20 2009 +0900 @@ -154,7 +154,7 @@ } void -CellTaskManager::sednTaskList() +CellTaskManagerImpl::sendTaskList() { for (int i = 0; i < machineNum; i++) { if (flag_sendTaskList[i] == 1 && speTaskList_bg[i]->length >= 1 ) { @@ -181,8 +181,8 @@ // SPE に送る TaskList の準備 set_runTaskList(); // TaskList 待ちの SPE に TaskList を送る - sednTaskList(); - } while (ppeManager->activeTaskQueue->empty()); + sendTaskList(); + } while (ppeManager->activeTaskQueue->empty() && spe_running >0 ); } while (ppeTaskList || spe_running >0); if (!waitTaskQueue->empty()) { fprintf(stderr,"Dead lock detected\n");
--- a/TaskManager/Cell/CellTaskManagerImpl.h Sat Dec 19 12:12:09 2009 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.h Sat Dec 19 12:20:20 2009 +0900 @@ -26,6 +26,7 @@ void run(); void mail_check(); void set_runTaskList(); + void sendTaskList(); void append_activeTask(HTaskPtr); void show_profile() ; void start_profile() ;