aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregory Maxwell <gmaxwell@gmail.com>2012-05-09 03:55:02 -0700
committerGregory Maxwell <gmaxwell@gmail.com>2012-05-09 03:55:02 -0700
commit92dca80975849ace655adfd99e6bff0797106d89 (patch)
treeb00b44a988bba87ec656aa28123a1e4817367cda /src
parente17018adcd1a24e603d9d3bd4240a32165aa22b4 (diff)
parent2ea78ec7fd1624e88a3067f8a6a77ec0e7325063 (diff)
Merge pull request #1232 from TheBlueMatt/lockcontention
Fix DEBUG_LOCKCONTENTION
Diffstat (limited to 'src')
-rw-r--r--src/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 5f8d0375da..81b36d31fd 100644
--- a/src/util.h
+++ b/src/util.h
@@ -217,9 +217,11 @@ public:
{
printf("LOCKCONTENTION: %s\n", pszName);
printf("Locker: %s:%d\n", pszFile, nLine);
- }
#endif
lock.lock();
+#ifdef DEBUG_LOCKCONTENTION
+ }
+#endif
}
}