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