- client: if detach a project, adjust debts and trigger

CPU sched and work fetch

svn path=/trunk/boinc/; revision=17843
This commit is contained in:
David Anderson 2009-04-17 06:12:41 +00:00
parent dde7d4306a
commit e46d8c6e63
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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<projects.size(); i++) {
p = projects[i];