MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / insert_gen_timer_unsafe

Function insert_gen_timer_unsafe

modules/dialog/dlg_timer.c:261–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259
260
261static inline void insert_gen_timer_unsafe(struct dlg_timer *timer, struct dlg_tl *tl)
262{
263 struct dlg_tl* ptr;
264
265#ifdef EXTRA_DEBUG
266 debug_gen_timer_list( timer );
267#endif
268
269 for(ptr = timer->first.prev; ptr != &(timer->first) ; ptr = ptr->prev) {
270 if ( ptr->timeout <= tl->timeout )
271 break;
272 }
273
274 LM_DBG("inserting %p for %d\n", tl,tl->timeout);
275 tl->prev = ptr;
276 tl->next = ptr->next;
277 tl->prev->next = tl;
278 tl->next->prev = tl;
279
280#ifdef EXTRA_DEBUG
281 debug_gen_timer_list( timer );
282#endif
283}
284
285int insert_dlg_timer(struct dlg_tl *tl, int interval)
286{

Callers 3

insert_dlg_timerFunction · 0.85
update_dlg_timerFunction · 0.85

Calls 1

debug_gen_timer_listFunction · 0.85

Tested by

no test coverage detected