From e46d8c6e63f363d9a5c8a38ac165bad3b4f4f329 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 17 Apr 2009 06:12:41 +0000 Subject: [PATCH] - client: if detach a project, adjust debts and trigger CPU sched and work fetch svn path=/trunk/boinc/; revision=17843 --- checkin_notes | 7 +++++++ client/client_state.cpp | 3 +++ client/cpu_sched.cpp | 2 ++ 3 files changed, 12 insertions(+) diff --git a/checkin_notes b/checkin_notes index 152476f5a4..294bcb7adc 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3975,3 +3975,10 @@ David 16 Apr 2009 user/ apps.php +David 16 Apr 2009 + - client: if detach a project, adjust debts and trigger + CPU sched and work fetch + + client/ + client_state.cpp + cpu_sched.cpp diff --git a/client/client_state.cpp b/client/client_state.cpp index 6a3f91051e..eef142c793 100644 --- a/client/client_state.cpp +++ b/client/client_state.cpp @@ -1615,6 +1615,9 @@ int CLIENT_STATE::detach_project(PROJECT* project) { delete project; write_state_file(); + adjust_debts(); + request_schedule_cpus("Detach"); + request_work_fetch("Detach"); return 0; } diff --git a/client/cpu_sched.cpp b/client/cpu_sched.cpp index c989d16c48..8107dc1de9 100644 --- a/client/cpu_sched.cpp +++ b/client/cpu_sched.cpp @@ -390,12 +390,14 @@ void CLIENT_STATE::adjust_debts() { } // adjust long term debts + // cpu_work_fetch.update_debts(); if (coproc_cuda) { cuda_work_fetch.update_debts(); } // adjust short term debts + // rrs = runnable_resource_share(); for (i=0; i