aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2012-06-05 16:12:32 +0200
committerMatt Corallo <[email protected]>2012-06-05 16:13:16 +0200
commit4d009243cbc2dd5aa172fedbd00c6658ae6ac82d (patch)
tree59ae91faa0a7687c29c9c063976573ae6dc6d7fe /src/sync.cpp
parentMerge pull request #1422 from Diapolo/add_used_datadir_debug_log (diff)
downloaddiscoin-4d009243cbc2dd5aa172fedbd00c6658ae6ac82d.tar.xz
discoin-4d009243cbc2dd5aa172fedbd00c6658ae6ac82d.zip
Fix DEBUG_LOCKCONTENTION
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.