Skip to content
Snippets Groups Projects
Commit 106ef1e8 authored by Rom Walton's avatar Rom Walton
Browse files

VBOX: Make creating/writing the graphics status file part of the job file...

VBOX: Make creating/writing the graphics status file part of the job file configuration.  No need to write it if there is not going to be a running graphics application.
parent f3b32140
Branches
Tags
No related merge requests found
......@@ -114,6 +114,7 @@ void VBOX_JOB::clear() {
enable_isocontextualization = false;
enable_remotedesktop = false;
enable_gbac = false;
enable_graphics_support = false;
enable_network = false;
network_bridged_mode = false;
pf_guest_port = 0;
......@@ -166,6 +167,7 @@ int VBOX_JOB::parse() {
else if (xp.parse_bool("enable_isocontextualization", enable_isocontextualization)) continue;
else if (xp.parse_bool("enable_remotedesktop", enable_remotedesktop)) continue;
else if (xp.parse_bool("enable_gbac", enable_gbac)) continue;
else if (xp.parse_bool("enable_graphics_support", enable_graphics_support)) continue;
else if (xp.parse_int("pf_guest_port", pf_guest_port)) continue;
else if (xp.parse_int("pf_host_port", pf_host_port)) continue;
else if (xp.parse_string("copy_to_shared", str)) {
......
......@@ -98,6 +98,10 @@ public:
// whether to enable GBAC functionality
bool enable_gbac;
// whether to enable graphics support by way of
// http://boinc.berkeley.edu/trac/wiki/GraphicsApi#File
bool enable_graphics_support;
// maximum amount of wall-clock time this VM is allowed to run before
// considering itself done.
double job_duration;
......
......@@ -868,7 +868,9 @@ int main(int argc, char** argv) {
pVM->poll();
// Write updates for the graphics application's use
if (pVM->enable_graphics_support) {
boinc_write_graphics_status(current_cpu_time, elapsed_time, fraction_done);
}
if (boinc_status.no_heartbeat || boinc_status.quit_request) {
pVM->reset_vm_process_priority();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment