From 020d40b2d1216470fd7a3acd4bf15d59a37092c8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 26 Jun 2008 18:17:01 +0000 Subject: [PATCH] - wrapper: added --graphics cmdline arg. Use this if your app has a graphics app. svn path=/trunk/boinc_samples/; revision=15489 --- checkin_notes | 7 +++++++ wrapper/wrapper.C | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/checkin_notes b/checkin_notes index e1190a7954..cb7c40e17b 100644 --- a/checkin_notes +++ b/checkin_notes @@ -771,3 +771,10 @@ David 19 June 2008 wrapper/ wrapper.C + +David 26 June 2008 + - wrapper: added --graphics cmdline arg. + Use this if your app has a graphics app. + + wrapper/ + wrapper.C diff --git a/wrapper/wrapper.C b/wrapper/wrapper.C index b3fff1b119..1aeec17fa8 100644 --- a/wrapper/wrapper.C +++ b/wrapper/wrapper.C @@ -116,6 +116,7 @@ struct TASK { vector tasks; APP_INIT_DATA aid; +bool graphics = false; int TASK::parse(XML_PARSER& xp) { char tag[1024], buf[8192], buf2[8192]; @@ -515,10 +516,19 @@ int main(int argc, char** argv) { unsigned int i; double cpu, total_weight=0, w=0; + for (i=1; i