[asterisk-commits] tilghman: trunk r216551 - /trunk/include/asterisk/lock.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 4 12:50:22 CDT 2009


Author: tilghman
Date: Fri Sep  4 12:50:21 2009
New Revision: 216551

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=216551
Log:
Fix trunk breakage.

Modified:
    trunk/include/asterisk/lock.h

Modified: trunk/include/asterisk/lock.h
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/include/asterisk/lock.h?view=diff&rev=216551&r1=216550&r2=216551
==============================================================================
--- trunk/include/asterisk/lock.h (original)
+++ trunk/include/asterisk/lock.h Fri Sep  4 12:50:21 2009
@@ -1556,13 +1556,12 @@
 {
 	int res;
 	struct ast_lock_track *lt = &t->track;
+#ifdef HAVE_BKTR
+	struct ast_bt *bt = NULL;
+#endif
+#ifdef AST_MUTEX_INIT_W_CONSTRUCTORS
 	int canlog = strcmp(filename, "logger.c") & t->tracking;
-#ifdef HAVE_BKTR
-	struct ast_bt *bt = NULL;
-#endif
-
-
-#ifdef AST_MUTEX_INIT_W_CONSTRUCTORS
+
 	if ((t->lock) == ((pthread_rwlock_t) __AST_RWLOCK_INIT_VALUE)) {
 		 /* Don't warn abount uninitialized lock.
 		  * Simple try to initialize it.
@@ -1615,13 +1614,12 @@
 {
 	int res;
 	struct ast_lock_track *lt= &t->track;
+#ifdef HAVE_BKTR
+	struct ast_bt *bt = NULL;
+#endif
+#ifdef AST_MUTEX_INIT_W_CONSTRUCTORS
 	int canlog = strcmp(filename, "logger.c") & t->tracking;
-#ifdef HAVE_BKTR
-	struct ast_bt *bt = NULL;
-#endif
-
-
-#ifdef AST_MUTEX_INIT_W_CONSTRUCTORS
+
 	if ((t->lock) == ((pthread_rwlock_t) __AST_RWLOCK_INIT_VALUE)) {
 		 /* Don't warn abount uninitialized lock.
 		  * Simple try to initialize it.




More information about the asterisk-commits mailing list