sync: inline lock contention logging macro to fix time duration
Co-authored-by: Martin Ankerl <martin.ankerl@gmail.com>
This commit is contained in:
1 parent
6718fbe90a
commit
8d2f847ed9
2 files changed
+3
-10
No files matched your search
@@ -9,7 +9,6 @@
|
||||
#include <sync.h>
|
||||
|
||||
#include <logging.h>
|
||||
#include <logging/timer.h>
|
||||
#include <tinyformat.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/threadnames.h>
|
||||
@@ -24,11 +23,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
void LockContention(const char* pszName, const char* pszFile, int nLine)
|
||||
{
|
||||
LOG_TIME_MICROS_WITH_CATEGORY(strprintf("%s, %s:%d", pszName, pszFile, nLine), BCLog::LOCK);
|
||||
}
|
||||
|
||||
#ifdef DEBUG_LOCKORDER
|
||||
//
|
||||
// Early deadlock detection.
|
||||
|
||||
Reference in new issue
Block a user