aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-06-08 07:22:19 -0700
committerPieter Wuille <[email protected]>2012-06-08 07:22:19 -0700
commit1b7cd74a495a8fbab9ddcfaea28be25acdfbb200 (patch)
tree58c7310a8033da5846d3096a7382412d371701bf /src/sync.cpp
parentMerge pull request #1418 from Diapolo/GUI_fix_default_proxy_addr (diff)
parentFix DEBUG_LOCKCONTENTION (diff)
downloaddiscoin-1b7cd74a495a8fbab9ddcfaea28be25acdfbb200.tar.xz
discoin-1b7cd74a495a8fbab9ddcfaea28be25acdfbb200.zip
Merge pull request #1424 from TheBlueMatt/lockcontention
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.