From 4d009243cbc2dd5aa172fedbd00c6658ae6ac82d Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 5 Jun 2012 16:12:32 +0200 Subject: Fix DEBUG_LOCKCONTENTION --- src/sync.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/sync.cpp') 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 +#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. -- cgit v1.2.3