Ignore:
Timestamp:
Sep 3, 2019 2:10:45 AM (4 years ago)
Author:
ming
Message:

Fixed #2225: Timer heap refactoring

File:
1 edited

Legend:

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

    r6031 r6058  
    533533 
    534534/** 
     535 * If enabled, when calling pj_pool_release(), the memory pool content 
     536 * will be wiped out first before released. 
     537 * 
     538 * Default: 0 
     539 */ 
     540#ifndef PJ_POOL_RELEASE_WIPE_DATA 
     541#  define PJ_POOL_RELEASE_WIPE_DATA     0 
     542#endif 
     543 
     544 
     545/** 
    535546 * Enable timer heap debugging facility. When this is enabled, application 
    536547 * can call pj_timer_heap_dump() to show the contents of the timer heap 
     
    538549 * See https://trac.pjsip.org/repos/ticket/1527 for more info. 
    539550 * 
    540  * Default: 0 
     551 * Default: 1 
    541552 */ 
    542553#ifndef PJ_TIMER_DEBUG 
    543 #  define PJ_TIMER_DEBUG            0 
     554#  define PJ_TIMER_DEBUG            1 
     555#endif 
     556 
     557 
     558/** 
     559 * If enabled, the timer heap will keep internal copies of the timer entries. 
     560 * This will increase the robustness and stability of the timer heap (against 
     561 * accidental modification or premature deallocation of the timer entries) and 
     562 * makes it easier to troubleshoot any timer related issues, with the overhead 
     563 * of additional memory space required. 
     564 * 
     565 * Note that the detection against premature deallocation only works if the 
     566 * freed memory content has changed (such as if it's been reallocated and 
     567 * overwritten by another data. Alternatively, you can enable 
     568 * PJ_POOL_RELEASE_WIPE_DATA which will erase the data first before releasing 
     569 * the memory). 
     570 * 
     571 * Default: 1 (enabled) 
     572 */ 
     573#ifndef PJ_TIMER_HEAP_USE_COPY 
     574#  define PJ_TIMER_HEAP_USE_COPY    1 
    544575#endif 
    545576 
Note: See TracChangeset for help on using the changeset viewer.