mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
threads: add a thread_local autoconf check
This commit is contained in:
parent
bba9bd0d9d
commit
f7f7e2cd34
2 changed files with 25 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue