mirror of https://github.com/BOINC/boinc.git
- 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:
parent
dde7d4306a
commit
e46d8c6e63
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue