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/timer.h

    r6058 r6099  
    2626#include <pj/types.h> 
    2727#include <pj/lock.h> 
     28 
     29#if PJ_TIMER_USE_LINKED_LIST 
     30#  include <pj/list.h> 
     31#endif 
    2832 
    2933PJ_BEGIN_DECL 
     
    8993typedef struct pj_timer_entry 
    9094{ 
     95#if !PJ_TIMER_USE_COPY && PJ_TIMER_USE_LINKED_LIST 
     96    /** 
     97    * Standard list members. 
     98    */ 
     99    PJ_DECL_LIST_MEMBER(struct pj_timer_entry); 
     100#endif 
     101 
    91102    /**  
    92103     * User data to be associated with this entry.  
     
    114125    pj_timer_id_t _timer_id; 
    115126 
    116 #if !PJ_TIMER_HEAP_USE_COPY 
     127#if !PJ_TIMER_USE_COPY 
    117128    /**  
    118129     * The future time when the timer expires, which the value is updated 
Note: See TracChangeset for help on using the changeset viewer.