- API: don't start timer thread (or install signal handler on Unix)

if running standalone


svn path=/trunk/boinc/; revision=13577
This commit is contained in:
David Anderson 2007-09-12 13:37:06 +00:00
parent 8dfcc20101
commit 34a31a2827
2 changed files with 12 additions and 2 deletions

View File

@ -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;

View File

@ -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