[asterisk-commits] jpeeler: branch 1.4 r138238 - /branches/1.4/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 15 16:28:27 CDT 2008


Author: jpeeler
Date: Fri Aug 15 16:28:26 2008
New Revision: 138238

URL: http://svn.digium.com/view/asterisk?view=rev&rev=138238
Log:
initialize condition variable ss_thread_complete using ast_cond_init

Modified:
    branches/1.4/channels/chan_dahdi.c

Modified: branches/1.4/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_dahdi.c?view=diff&rev=138238&r1=138237&r2=138238
==============================================================================
--- branches/1.4/channels/chan_dahdi.c (original)
+++ branches/1.4/channels/chan_dahdi.c Fri Aug 15 16:28:26 2008
@@ -240,7 +240,7 @@
 /*! \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 @@
 		}
 	}
 #endif
+	ast_cond_destroy(&ss_thread_complete);
 	return 0;
 }
 
@@ -11846,6 +11847,8 @@
 	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;
 }
 




More information about the asterisk-commits mailing list