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

Function reset_timer

modules/tm/timer.c:903–915  ·  view source on GitHub ↗

stop timer * WARNING: a reset'ed timer will be lost forever * (successive set_timer won't work unless you're lucky * an catch the race condition, the idea here is there is no * guarantee you can do anything after a timer_reset)*/

Source from the content-addressed store, hash-verified

901 * an catch the race condition, the idea here is there is no
902 * guarantee you can do anything after a timer_reset)*/
903void reset_timer( struct timer_link* tl )
904{
905 /* disqualify this timer from execution by setting its time_out
906 to zero; it will stay in timer-list until the timer process
907 starts removing outdated elements; then it will remove it
908 but not execute; there is a race condition, though -- see
909 timer.c for more details
910 */
911 tl->deleted = 1;
912#ifdef EXTRA_DEBUG
913 LM_DBG("(group %d, tl=%p)\n", tl->tg, tl );
914#endif
915}
916
917
918

Callers 6

t_release_transactionFunction · 0.70
cleanup_uac_timersFunction · 0.70
reply_receivedFunction · 0.70
cancel_inviteFunction · 0.70
final_response_handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected