Ignore:
Timestamp:
Mar 5, 2007 9:08:01 PM (18 years ago)
Author:
bennylp
Message:

Optimization on the log and add tracing on mutex trylock

File:
1 edited

Legend:

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

    r974 r1042  
    2525#if PJ_LOG_MAX_LEVEL >= 1 
    2626 
    27 static int log_max_level = PJ_LOG_MAX_LEVEL; 
     27PJ_DEF(int) pj_log_max_level = PJ_LOG_MAX_LEVEL; 
    2828static pj_log_func *log_writer = &pj_log_write; 
    2929static unsigned log_decor = PJ_LOG_HAS_TIME | PJ_LOG_HAS_MICRO_SEC | 
     
    4646PJ_DEF(void) pj_log_set_level(int level) 
    4747{ 
    48     log_max_level = level; 
    49 } 
    50  
     48    pj_log_max_level = level; 
     49} 
     50 
     51#if 0 
    5152PJ_DEF(int) pj_log_get_level(void) 
    5253{ 
    53     return log_max_level; 
    54 } 
     54    return pj_log_max_level; 
     55} 
     56#endif 
    5557 
    5658PJ_DEF(void) pj_log_set_log_func( pj_log_func *func ) 
     
    7779    PJ_CHECK_STACK(); 
    7880 
    79     if (level > log_max_level) 
     81    if (level > pj_log_max_level) 
    8082        return; 
    8183 
Note: See TracChangeset for help on using the changeset viewer.