[svn-commits] jpeeler: branch 1.4 r138151 - /branches/1.4/channels/chan_dahdi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 15 14:41:30 CDT 2008


Author: jpeeler
Date: Fri Aug 15 14:41:29 2008
New Revision: 138151

URL: http://svn.digium.com/view/asterisk?view=rev&rev=138151
Log:
declared static mutexes using AST_MUTEX_DEFINE_STATIC macro

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=138151&r1=138150&r2=138151
==============================================================================
--- branches/1.4/channels/chan_dahdi.c (original)
+++ branches/1.4/channels/chan_dahdi.c Fri Aug 15 14:41:29 2008
@@ -241,8 +241,8 @@
    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_mutex_t ss_thread_lock = { PTHREAD_MUTEX_INITIALIZER };
-static ast_mutex_t restart_lock = { PTHREAD_MUTEX_INITIALIZER };
+AST_MUTEX_DEFINE_STATIC(ss_thread_lock);
+AST_MUTEX_DEFINE_STATIC(restart_lock);
 static int ss_thread_count = 0;
 static int num_restart_pending = 0;
 




More information about the svn-commits mailing list