[asterisk-commits] rmudgett: branch rmudgett/debug_threads r429126 - /team/rmudgett/debug_thread...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 8 15:36:33 CST 2014


Author: rmudgett
Date: Mon Dec  8 15:36:27 2014
New Revision: 429126

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=429126
Log:
Allow to compile when DEBUG_THREADS not enabled.

Modified:
    team/rmudgett/debug_threads/main/lock.c

Modified: team/rmudgett/debug_threads/main/lock.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/debug_threads/main/lock.c?view=diff&rev=429126&r1=429125&r2=429126
==============================================================================
--- team/rmudgett/debug_threads/main/lock.c (original)
+++ team/rmudgett/debug_threads/main/lock.c Mon Dec  8 15:36:27 2014
@@ -521,6 +521,7 @@
 	return pthread_cond_destroy(cond);
 }
 
+#ifdef DEBUG_THREADS
 static void restore_lock_tracking(struct ast_lock_track *lt, struct ast_lock_track *lt_saved)
 {
 	ast_reentrancy_lock(lt);
@@ -541,6 +542,7 @@
 
 	ast_reentrancy_unlock(lt);
 }
+#endif /* DEBUG_THREADS */
 
 int __ast_cond_wait(const char *filename, int lineno, const char *func,
 				  const char *cond_name, const char *mutex_name,




More information about the asterisk-commits mailing list