threads: add a thread_local autoconf check

This commit is contained in:
Cory Fields
2017-11-27 17:08:27 -05:00
committed by Thomas Snider
parent bba9bd0d9d
commit f7f7e2cd34
2 changed files with 25 additions and 0 deletions

View File

@@ -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);