Changeset 4154 for pjproject/trunk/pjlib/include/pj/timer.h
- Timestamp:
- Jun 5, 2012 10:41:17 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/timer.h
r3034 r4154 86 86 * This structure represents an entry to the timer. 87 87 */ 88 struct pj_timer_entry88 typedef struct pj_timer_entry 89 89 { 90 90 /** … … 118 118 */ 119 119 pj_time_val _timer_value; 120 }; 120 121 #if PJ_TIMER_DEBUG 122 const char *src_file; 123 int src_line; 124 #endif 125 } pj_timer_entry; 121 126 122 127 … … 209 214 * @return PJ_SUCCESS, or the appropriate error code. 210 215 */ 216 #if PJ_TIMER_DEBUG 217 # define pj_timer_heap_schedule(ht,e,d) \ 218 pj_timer_heap_schedule_dbg(ht,e,d,__FILE__,__LINE__) 219 220 PJ_DECL(pj_status_t) pj_timer_heap_schedule_dbg( pj_timer_heap_t *ht, 221 pj_timer_entry *entry, 222 const pj_time_val *delay, 223 const char *src_file, 224 int src_line); 225 #else 211 226 PJ_DECL(pj_status_t) pj_timer_heap_schedule( pj_timer_heap_t *ht, 212 227 pj_timer_entry *entry, 213 228 const pj_time_val *delay); 229 #endif /* PJ_TIMER_DEBUG */ 214 230 215 231 /** … … 263 279 pj_time_val *next_delay); 264 280 281 #if PJ_TIMER_DEBUG 282 /** 283 * Dump timer heap entries. 284 * 285 * @param ht The timer heap. 286 */ 287 PJ_DECL(void) pj_timer_heap_dump(pj_timer_heap_t *ht); 288 #endif 289 265 290 /** 266 291 * @}
Note: See TracChangeset
for help on using the changeset viewer.