*** empty log message ***

svn path=/trunk/boinc/; revision=4268
This commit is contained in:
David Anderson 2004-09-30 06:17:49 +00:00
parent 475c6d9c20
commit ec47bab31c
4 changed files with 16 additions and 4 deletions

View File

@ -17862,3 +17862,12 @@ Jeff 28 Sep 2004
sched/
feeder.C
David 29 Sept 2004
- handle GUI RPCs even if we're running benchmarks
- report PROJECT::suspended_via_gui in RPC reply
client/
client_state.C
client_types.C
gui_rpc_server.C

View File

@ -361,7 +361,7 @@ bool CLIENT_STATE::do_something() {
previous_activities_suspended = activities_suspended;
activities_suspended = (reason != 0);
// if we're doing CPU benchmarks, don't do anything else
// if we're doing CPU benchmarks, don't do much else
//
if (reason & SUSPEND_REASON_BENCHMARKS) {
// wait for applications to become suspended
@ -371,7 +371,7 @@ bool CLIENT_STATE::do_something() {
} else {
cpu_benchmarks_poll();
}
return false;
return gui_rpcs.poll();
}
check_suspend_network(reason);

View File

@ -459,7 +459,10 @@ int PROJECT::write_state(MIOFILE& out, bool gui_rpc) {
);
#endif
if (gui_rpc) {
out.printf("%s", gui_urls.c_str());
out.printf("%s%s",
gui_urls.c_str(),
suspended_via_gui?" <suspended_via_gui/>\n":""
);
} else {
for (i=0; i<scheduler_urls.size(); i++) {
out.printf(

View File

@ -156,7 +156,7 @@ static void handle_result_show_graphics(char* buf, MIOFILE& fout) {
static void handle_project_op(char* buf, MIOFILE& fout, char* op) {
PROJECT* p = get_project(buf, fout);
if (!p) {
fout.printf("<success/>\n");
fout.printf("<error>no such project</error>\n");
}
if (!strcmp(op, "reset")) {
gstate.reset_project(p);