aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2012-05-09 03:55:02 -0700
committerGregory Maxwell <[email protected]>2012-05-09 03:55:02 -0700
commit92dca80975849ace655adfd99e6bff0797106d89 (patch)
treeb00b44a988bba87ec656aa28123a1e4817367cda /src
parentMerge pull request #1211 from Diapolo/harmonize_ellipsis (diff)
parentFix DEBUG_LOCKCONTENTION (diff)
downloaddiscoin-92dca80975849ace655adfd99e6bff0797106d89.tar.xz
discoin-92dca80975849ace655adfd99e6bff0797106d89.zip
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 5f8d0375d..81b36d31f 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
}
}