Ignore:
Timestamp:
Aug 12, 2009 5:50:52 PM (15 years ago)
Author:
nanang
Message:

Ticket #931: Fixed logging for non-multithreading platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/log.c

    r2853 r2868  
    179179static void suspend_logging(int *saved_level) 
    180180{ 
     181        /* Save the level regardless, just in case PJLIB is shutdown 
     182         * between suspend and resume. 
     183         */ 
     184        *saved_level = pj_log_max_level; 
     185 
    181186#if PJ_HAS_THREADS 
    182187    if (thread_suspended_tls_id != -1)  
     
    189194        pj_log_max_level = 0; 
    190195    } 
    191     /* Save the level regardless, just in case PJLIB is shutdown 
    192      * between suspend and resume. 
    193      */ 
    194     *saved_level = pj_log_max_level; 
    195196} 
    196197 
     
    225226#endif 
    226227    { 
    227         return pj_log_max_level != 0; 
     228        return pj_log_max_level == 0; 
    228229    } 
    229230} 
Note: See TracChangeset for help on using the changeset viewer.