Ignore:
Timestamp:
Jun 5, 2012 10:41:17 AM (10 years ago)
Author:
bennylp
Message:

Re #1527: added debugging facility to the timer heap. By enabling PJ_TIMER_DEBUG, application can use pj_timer_heap_dump() or pjsip_endpt_dump() to dump the timer entries along with the source location where it is scheduled from. The macro will also enable dumping the timer heap entries when the SIP endpoint is being destroyed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_endpoint.h

    r3999 r4154  
    151151 * @return          PJ_OK (zero) if successfull. 
    152152 */ 
     153#if PJ_TIMER_DEBUG 
     154#define pjsip_endpt_schedule_timer(ept,ent,d) \ 
     155                        pjsip_endpt_schedule_timer_dbg(ept, ent, d, \ 
     156                                                       __FILE__, __LINE__) 
     157 
     158PJ_DECL(pj_status_t) pjsip_endpt_schedule_timer_dbg(pjsip_endpoint *endpt, 
     159                                                    pj_timer_entry *entry, 
     160                                                    const pj_time_val *delay, 
     161                                                    const char *src_file, 
     162                                                    int src_line); 
     163#else 
    153164PJ_DECL(pj_status_t) pjsip_endpt_schedule_timer( pjsip_endpoint *endpt, 
    154165                                                 pj_timer_entry *entry, 
    155166                                                 const pj_time_val *delay ); 
     167#endif 
    156168 
    157169/** 
Note: See TracChangeset for help on using the changeset viewer.