From f7f7e2cd340c088e82d09090eb275b98b34a9812 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Mon, 27 Nov 2017 17:08:27 -0500 Subject: threads: add a thread_local autoconf check --- src/sync.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sync.cpp') diff --git a/src/sync.cpp b/src/sync.cpp index 116533eb4..3f51383ea 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -11,6 +11,9 @@ #include #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); -- cgit v1.2.3