Ignore:
Timestamp:
Aug 5, 2009 10:58:02 AM (15 years ago)
Author:
bennylp
Message:

Ticket #931: Logging function may infinitely recursively calls itself on Windows Mobile (thanks Emil Sturniolo for the report)

  • Added feature to temporarily suspend the logging facility while we're in the pj_log() function. The suspension will be thread specific if the platform supports it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/log.h

    r2842 r2853  
    221221PJ_DECL(pj_color_t) pj_log_get_color(int level); 
    222222 
     223/** 
     224 * Internal function to be called by pj_init() 
     225 */ 
     226pj_status_t pj_log_init(void); 
    223227 
    224228#else   /* #if PJ_LOG_MAX_LEVEL >= 1 */ 
     
    288292#  define pj_log_get_color(level) 0 
    289293 
     294 
     295/** 
     296 * Internal. 
     297 */ 
     298#   define pj_log_init()        PJ_SUCCESS 
    290299 
    291300#endif  /* #if PJ_LOG_MAX_LEVEL >= 1 */ 
Note: See TracChangeset for help on using the changeset viewer.