From 34a31a2827ce7d00f563fb22270de2f1a2f522e6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 12 Sep 2007 13:37:06 +0000 Subject: [PATCH] - API: don't start timer thread (or install signal handler on Unix) if running standalone svn path=/trunk/boinc/; revision=13577 --- api/boinc_api.C | 7 +++++-- checkin_notes | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/api/boinc_api.C b/api/boinc_api.C index 59c6aa0d9b..c729d42f37 100644 --- a/api/boinc_api.C +++ b/api/boinc_api.C @@ -283,7 +283,10 @@ int boinc_init_options(BOINC_OPTIONS* opt) { } retval = boinc_init_options_general(*opt); if (retval) return retval; - return set_worker_timer(); + if (!standalone) { + retval = set_worker_timer(); + } + return retval; } // the following can be called by either graphics or worker thread @@ -873,7 +876,7 @@ int set_worker_timer() { return retval; } - // set up a periodic SIGALRM, to be hanled by the worker thread + // set up a periodic SIGALRM, to be handled by the worker thread // struct sigaction sa; itimerval value; diff --git a/checkin_notes b/checkin_notes index 4722556d0b..cd8304e817 100755 --- a/checkin_notes +++ b/checkin_notes @@ -8432,3 +8432,10 @@ David 12 Sept 2007 client/ cpu_sched.C + +David 12 Sept 2007 + - API: don't start timer thread (or install signal handler on Unix) + if running standalone + + api/ + boinc_api.C