aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-08-18 12:34:18 +0200
committerJon Atack <jon@atack.com>2021-09-01 15:26:35 +0200
commit7e698732836121912f179b7c743a72dd6fdffa72 (patch)
treed0f5d9b5a1408287b70258aa10218172b758be30 /src/sync.cpp
parent9b08006bc502e67956d6ab518388fad6397cac8d (diff)
downloadbitcoin-7e698732836121912f179b7c743a72dd6fdffa72.tar.xz
sync: remove DEBUG_LOCKCONTENTION preprocessor directives
to allow logging the lock contentions without the need to define DEBUG_LOCKCONTENTION at compile time.
Diffstat (limited to 'src/sync.cpp')
-rw-r--r--src/sync.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/sync.cpp b/src/sync.cpp
index ef46bbb22f..eace86d9dd 100644
--- a/src/sync.cpp
+++ b/src/sync.cpp
@@ -24,15 +24,10 @@
#include <utility>
#include <vector>
-#ifdef DEBUG_LOCKCONTENTION
-#if !defined(HAVE_THREAD_LOCAL)
-static_assert(false, "thread_local is not supported");
-#endif
void LockContention(const char* pszName, const char* pszFile, int nLine)
{
LOG_TIME_MICROS_WITH_CATEGORY(strprintf("%s, %s:%d", pszName, pszFile, nLine), BCLog::LOCK);
}
-#endif /* DEBUG_LOCKCONTENTION */
#ifdef DEBUG_LOCKORDER
//