From 3e2ee824b50ce6ad660895b90761bcf27ebb591c Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Tue, 24 Jun 2003 20:44:32 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=1578 --- api/boinc_api.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/boinc_api.C b/api/boinc_api.C index a401ee627a..ec4b2cc6fa 100644 --- a/api/boinc_api.C +++ b/api/boinc_api.C @@ -289,7 +289,7 @@ int boinc_get_init_data(APP_INIT_DATA& app_init_data) { bool boinc_time_to_checkpoint() { #ifdef __APPLE_CC__ - YieldToAnyThread(); + //YieldToAnyThread(); #elif _WIN32 DWORD eventState; // Check if core client has requested us to exit @@ -552,5 +552,8 @@ int update_app_progress(double frac_done, double cpu_t, double cp_cpu_t, int ws_ frac_done, cpu_t, cp_cpu_t, ws_t ); - return app_client_shm->send_msg(msg_buf, APP_CORE_WORKER_SEG); + if (app_client_shm) + return app_client_shm->send_msg(msg_buf, APP_CORE_WORKER_SEG); + else + return 0; }