diff options
| author | Giel van Schijndel <[email protected]> | 2012-06-17 14:30:37 +0200 |
|---|---|---|
| committer | Giel van Schijndel <[email protected]> | 2012-06-17 14:30:37 +0200 |
| commit | 07368a9e3c60bbef8452501d34bb8d3688cbca13 (patch) | |
| tree | 963f2e56176451bfeb84e54d14bf726388407b7d /src/sync.cpp | |
| parent | Use the QueueShutdown signal to stop accepting new RPC connections (diff) | |
| parent | Document how to build/run unit tests (diff) | |
| download | discoin-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.cpp | 8 |
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. |