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

Function register_utimer

timer.c:267–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266
267int register_utimer(char *label, utimer_function f, void* param,
268 unsigned int interval, unsigned short flags)
269{
270 struct os_timer* t;
271
272 flags = flags | TIMER_FLAG_IS_UTIMER; /* just to be sure */
273 t = new_os_timer( label, flags, (timer_function*)f, param, interval);
274 if (t==NULL)
275 return E_OUT_OF_MEM;
276 /* insert it into the utimer list*/
277 t->next = utimer_list;
278 utimer_list = t;
279 return t->id;
280}
281
282
283struct timer_route_param {

Callers 4

mod_initFunction · 0.85
mod_initFunction · 0.85
mod_initFunction · 0.85
repl_prof_initFunction · 0.85

Calls 1

new_os_timerFunction · 0.85

Tested by

no test coverage detected