浏览代码

async: updated to the name of functions for timers instead of macros

Daniel-Constantin Mierla 8 年之前
父节点
当前提交
60269ead49
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/async/async_mod.c

+ 2 - 2
modules/async/async_mod.c

@@ -106,7 +106,7 @@ static int mod_init(void)
 		return -1;
 		return -1;
 	}
 	}
 
 
-	register_dummy_timers(async_workers);
+	register_basic_timers(async_workers);
 
 
 	return 0;
 	return 0;
 }
 }
@@ -125,7 +125,7 @@ static int child_init(int rank)
 		return 0;
 		return 0;
 
 
 	for(i=0; i<async_workers; i++) {
 	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) {
 				async_timer_exec, NULL, 1 /*sec*/)<0) {
 			LM_ERR("failed to register timer routine as process (%d)\n", i);
 			LM_ERR("failed to register timer routine as process (%d)\n", i);
 			return -1; /* error */
 			return -1; /* error */