changeset 2984:e9afec434f4d draft

Fix DEBUG_LOCKCONTENTION
author Matt Corallo <matt@bluematt.me>
date Wed, 09 May 2012 01:40:33 -0400
parents 05cc429f7bf9
children bbd0af47e5a3
files src/util.h
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.h
+++ b/src/util.h
@@ -217,9 +217,11 @@
             {
                 printf("LOCKCONTENTION: %s\n", pszName);
                 printf("Locker: %s:%d\n", pszFile, nLine);
+#endif
+            lock.lock();
+#ifdef DEBUG_LOCKCONTENTION
             }
 #endif
-            lock.lock();
         }
     }