Merged revisions 46130 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Tue, 24 Oct 2006 19:33:02 +0000 (19:33 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 24 Oct 2006 19:33:02 +0000 (19:33 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46130 | file | 2006-10-24 15:29:56 -0400 (Tue, 24 Oct 2006) | 2 lines

We need to initialize our scheduler pthread condition... yes.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46131 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 7abe62f..dfefcea 100644 (file)
@@ -9883,6 +9883,8 @@ static int load_module(void)
        for (x=0;x<IAX_MAX_CALLS;x++)
                ast_mutex_init(&iaxsl[x]);
 
+       ast_cond_init(&sched_cond, NULL);
+
        if (!(sched = sched_context_create())) {
                ast_log(LOG_ERROR, "Failed to create scheduler context\n");
                return AST_MODULE_LOAD_FAILURE;