aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2012-05-09 01:40:33 -0400
committerMatt Corallo <[email protected]>2012-05-09 01:41:07 -0400
commit2ea78ec7fd1624e88a3067f8a6a77ec0e7325063 (patch)
treec5db8dcceeb841d713ccea236b5d03999e1d622f /src
parentMerge pull request #1180 from jgarzik/sign-compare (diff)
downloaddiscoin-2ea78ec7fd1624e88a3067f8a6a77ec0e7325063.tar.xz
discoin-2ea78ec7fd1624e88a3067f8a6a77ec0e7325063.zip
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
}
}