Ignore:
Timestamp:
Nov 6, 2019 6:17:53 AM (13 months ago)
Author:
riza
Message:

Close #2249: Use sorted linked list for timer implementation.

File:
1 edited

Legend:

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

    r6058 r6099  
    544544 
    545545/** 
    546  * Enable timer heap debugging facility. When this is enabled, application 
    547  * can call pj_timer_heap_dump() to show the contents of the timer heap 
     546 * Enable timer debugging facility. When this is enabled, application 
     547 * can call pj_timer_heap_dump() to show the contents of the timer 
    548548 * along with the source location where the timer entries were scheduled. 
    549549 * See https://trac.pjsip.org/repos/ticket/1527 for more info. 
     
    557557 
    558558/** 
    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 
     559 * If enabled, the timer will keep internal copies of the timer entries. 
     560 * This will increase the robustness and stability of the timer (against 
    561561 * accidental modification or premature deallocation of the timer entries) and 
    562562 * makes it easier to troubleshoot any timer related issues, with the overhead 
     
    571571 * Default: 1 (enabled) 
    572572 */ 
    573 #ifndef PJ_TIMER_HEAP_USE_COPY 
    574 #  define PJ_TIMER_HEAP_USE_COPY    1 
    575 #endif 
    576  
     573#ifndef PJ_TIMER_USE_COPY 
     574#  define PJ_TIMER_USE_COPY    1 
     575#endif 
     576 
     577 
     578/** 
     579 * If enabled, the timer use sorted linked list instead of binary heap tree 
     580 * structure. Note that using sorted linked list is intended for debugging 
     581 * purposes and will hamper performance significantly when scheduling large 
     582 * number of entries. 
     583 * 
     584 * Default: 0 (Use binary heap tree) 
     585 */ 
     586#ifndef PJ_TIMER_USE_LINKED_LIST 
     587#  define PJ_TIMER_USE_LINKED_LIST    0 
     588#endif 
    577589 
    578590/** 
Note: See TracChangeset for help on using the changeset viewer.