Fix DEBUG_LOCKCONTENTION
authorMatt Corallo <matt@bluematt.me>
Wed, 9 May 2012 05:40:33 +0000 (01:40 -0400)
committerLuke Dashjr <luke-jr+git@utopios.org>
Tue, 15 May 2012 07:40:01 +0000 (07:40 +0000)
src/util.h

index 15ccf82..f2a70d8 100644 (file)
@@ -217,9 +217,11 @@ public:
             {
                 printf("LOCKCONTENTION: %s\n", pszName);
                 printf("Locker: %s:%d\n", pszFile, nLine);
-            }
 #endif
             lock.lock();
+#ifdef DEBUG_LOCKCONTENTION
+            }
+#endif
         }
     }