mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
threads: add a thread_local autoconf check
This commit is contained in:
committed by
Thomas Snider
parent
bba9bd0d9d
commit
f7f7e2cd34
@@ -11,6 +11,9 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef DEBUG_LOCKCONTENTION
|
||||
#if !defined(HAVE_THREAD_LOCAL)
|
||||
static_assert(false, "thread_local is not supported");
|
||||
#endif
|
||||
void PrintLockContention(const char* pszName, const char* pszFile, int nLine)
|
||||
{
|
||||
LogPrintf("LOCKCONTENTION: %s\n", pszName);
|
||||
|
||||
Reference in New Issue
Block a user