- debug "exclusive app" feature

svn path=/trunk/boinc/; revision=16090
This commit is contained in:
David Anderson 2008-09-29 18:51:46 +00:00
parent b595d7af76
commit 30aecfc6f8
3 changed files with 6 additions and 2 deletions

View File

@ -155,6 +155,10 @@ int CLIENT_STATE::check_suspend_processing() {
}
}
}
if (active_tasks.exclusive_app_running) {
return SUSPEND_REASON_EXCLUSIVE_APP_RUNNING;
}
return 0;
}

View File

@ -1007,7 +1007,7 @@ void CViewWork::GetDocStatus(wxInt32 item, wxString& strBuffer) const {
if (status.task_suspend_reason & SUSPEND_REASON_DISK_SIZE) {
strBuffer += _(" - need disk space");
}
if (status.task_suspend_reason & SUSPEND_REASON_EXCLUSIVE_APP) {
if (status.task_suspend_reason & SUSPEND_REASON_EXCLUSIVE_APP_RUNNING) {
strBuffer += _(" - an exclusive app is running");
}
} else if (result->active_task) {

View File

@ -110,7 +110,7 @@ enum SUSPEND_REASON {
SUSPEND_REASON_CPU_USAGE_LIMIT = 64,
SUSPEND_REASON_NO_RECENT_INPUT = 128,
SUSPEND_REASON_INITIAL_DELAY = 256,
SUSPEND_REASON_EXCLUSIVE_APP = 512,
SUSPEND_REASON_EXCLUSIVE_APP_RUNNING = 512,
};
// States of a result on a client.