mirror of https://github.com/BOINC/boinc.git
- client: show <cpu_sched> message when suspend/resume GPU activity
svn path=/trunk/boinc/; revision=19957
This commit is contained in:
parent
73890c2265
commit
e82e491c31
|
@ -10209,3 +10209,9 @@ Charlie 17 Dec 2009
|
|||
|
||||
client/
|
||||
coproc_detect.cpp
|
||||
|
||||
David 17 Dec 2009
|
||||
- client: show <cpu_sched> message when suspend/resume GPU activity
|
||||
|
||||
client/
|
||||
cs_prefs.cpp
|
||||
|
|
|
@ -144,6 +144,7 @@ int CLIENT_STATE::check_suspend_processing() {
|
|||
}
|
||||
}
|
||||
|
||||
bool old_gpu_suspended = gpu_suspended;
|
||||
gpu_suspended = false;
|
||||
switch (gpu_mode.get_current()) {
|
||||
case RUN_MODE_ALWAYS:
|
||||
|
@ -162,6 +163,14 @@ int CLIENT_STATE::check_suspend_processing() {
|
|||
}
|
||||
}
|
||||
|
||||
if (log_flags.cpu_sched) {
|
||||
if (old_gpu_suspended && !gpu_suspended) {
|
||||
msg_printf(NULL, MSG_INFO, "[cpu_sched] resuming GPU activity");
|
||||
} else if (!old_gpu_suspended && gpu_suspended) {
|
||||
msg_printf(NULL, MSG_INFO, "[cpu_sched] suspending GPU activity");
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue