Quick Updates

svn path=/trunk/boinc/; revision=24542
This commit is contained in:
Rom Walton 2011-11-07 19:47:40 +00:00
parent 1d4dc5a762
commit 6d5af38040
1 changed files with 7 additions and 1 deletions

View File

@ -187,13 +187,19 @@ int CLIENT_STATE::check_suspend_processing() {
return 0;
}
void print_suspend_tasks_message(int reason) {
msg_printf(NULL, MSG_INFO, "Suspending computation - %s", suspend_reason_string(reason));
}
int CLIENT_STATE::suspend_tasks(int reason) {
if (reason == SUSPEND_REASON_CPU_THROTTLE) {
if (log_flags.cpu_sched) {
msg_printf(NULL, MSG_INFO, "[cpu_sched] Suspending - CPU throttle");
}
} else {
msg_printf(NULL, MSG_INFO, "Suspending computation - %s", suspend_reason_string(reason));
print_suspend_tasks_message(reason);
}
active_tasks.suspend_all(reason);
return 0;