aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-15 21:28:26 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-15 21:28:26 +0000
commit2d1e04e80a690397f03ba690ec7d38ffa7f703ce (patch)
treed0c42f688cb139c19f67c62641e70ed046342b4c /channels
parent5bfebb590cc310dc82c040cb3d9f48ba1349d2af (diff)
initialize condition variable ss_thread_complete using ast_cond_init
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@138238 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_dahdi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 58050a9e5..1dc6d06e8 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -240,7 +240,7 @@ AST_MUTEX_DEFINE_STATIC(monlock);
/*! \brief This is the thread for the monitor which checks for input on the channels
which are not currently in use. */
static pthread_t monitor_thread = AST_PTHREADT_NULL;
-static ast_cond_t ss_thread_complete = PTHREAD_COND_INITIALIZER;
+static ast_cond_t ss_thread_complete;
AST_MUTEX_DEFINE_STATIC(ss_thread_lock);
AST_MUTEX_DEFINE_STATIC(restart_lock);
static int ss_thread_count = 0;
@@ -10851,6 +10851,7 @@ static int __unload_module(void)
}
}
#endif
+ ast_cond_destroy(&ss_thread_complete);
return 0;
}
@@ -11846,6 +11847,8 @@ static int load_module(void)
local_astman_register("ShowChannels", 0, action_showchannels, "Show status channels");
local_astman_register("Restart", 0, action_restart, "Fully Restart channels (terminates calls)");
+ ast_cond_init(&ss_thread_complete, NULL);
+
return res;
}