aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorGiel van Schijndel <[email protected]>2012-06-17 14:30:37 +0200
committerGiel van Schijndel <[email protected]>2012-06-17 14:30:37 +0200
commit07368a9e3c60bbef8452501d34bb8d3688cbca13 (patch)
tree963f2e56176451bfeb84e54d14bf726388407b7d /src/sync.cpp
parentUse the QueueShutdown signal to stop accepting new RPC connections (diff)
parentDocument how to build/run unit tests (diff)
downloaddiscoin-07368a9e3c60bbef8452501d34bb8d3688cbca13.tar.xz
discoin-07368a9e3c60bbef8452501d34bb8d3688cbca13.zip
Merge branch 'master' into async-ipv6-rpc
Conflicts: src/bitcoinrpc.cpp Signed-off-by: Giel van Schijndel <[email protected]>
Diffstat (limited to 'src/sync.cpp')
-rw-r--r--src/sync.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sync.cpp b/src/sync.cpp
index f2403a43f..dbd9ebdae 100644
--- a/src/sync.cpp
+++ b/src/sync.cpp
@@ -7,6 +7,14 @@
#include <boost/foreach.hpp>
+#ifdef DEBUG_LOCKCONTENTION
+void PrintLockContention(const char* pszName, const char* pszFile, int nLine)
+{
+ printf("LOCKCONTENTION: %s\n", pszName);
+ printf("Locker: %s:%d\n", pszFile, nLine);
+}
+#endif /* DEBUG_LOCKCONTENTION */
+
#ifdef DEBUG_LOCKORDER
//
// Early deadlock detection.