Module: kamailio
Branch: master
Commit: 60269ead4973b745f529e42c6e2c60287a040c64
URL:
https://github.com/kamailio/kamailio/commit/60269ead4973b745f529e42c6e2c602…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-10T09:45:02+01:00
async: updated to the name of functions for timers instead of macros
---
Modified: modules/async/async_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/60269ead4973b745f529e42c6e2c602…
Patch:
https://github.com/kamailio/kamailio/commit/60269ead4973b745f529e42c6e2c602…
---
diff --git a/modules/async/async_mod.c b/modules/async/async_mod.c
index 61f7496..4c40201 100644
--- a/modules/async/async_mod.c
+++ b/modules/async/async_mod.c
@@ -106,7 +106,7 @@ static int mod_init(void)
return -1;
}
- register_dummy_timers(async_workers);
+ register_basic_timers(async_workers);
return 0;
}
@@ -125,7 +125,7 @@ static int child_init(int rank)
return 0;
for(i=0; i<async_workers; i++) {
- if(fork_dummy_timer(PROC_TIMER, "ASYNC MOD TIMER", 1 /*socks flag*/,
+ if(fork_basic_timer(PROC_TIMER, "ASYNC MOD TIMER", 1 /*socks flag*/,
async_timer_exec, NULL, 1 /*sec*/)<0) {
LM_ERR("failed to register timer routine as process (%d)\n", i);
return -1; /* error */