log, sync: add LOCK logging category, apply it to lock contention
This commit is contained in:
4 files changed
+5
-3
No files matched your search
+2
-2
@@ -29,8 +29,8 @@ static_assert(false, "thread_local is not supported");
|
||||
#endif
|
||||
void PrintLockContention(const char* pszName, const char* pszFile, int nLine)
|
||||
{
|
||||
LogPrintf("LOCKCONTENTION: %s\n", pszName);
|
||||
LogPrintf("Locker: %s:%d\n", pszFile, nLine);
|
||||
LogPrint(BCLog::LOCK, "LOCKCONTENTION: %s\n", pszName);
|
||||
LogPrint(BCLog::LOCK, "Locker: %s:%d\n", pszFile, nLine);
|
||||
}
|
||||
#endif /* DEBUG_LOCKCONTENTION */
|
||||
|
||||
|
||||
Reference in new issue
Block a user