diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2017-11-27 17:08:27 -0500 |
---|---|---|
committer | Thomas Snider <tjps636@gmail.com> | 2017-11-27 15:01:47 -0800 |
commit | f7f7e2cd340c088e82d09090eb275b98b34a9812 (patch) | |
tree | 7e9e439fd4c9b6c61e53bcf561ae3005f9101367 /src/sync.cpp | |
parent | bba9bd0d9dd06f13a6b0c89181864453cab5c858 (diff) |
threads: add a thread_local autoconf check
Diffstat (limited to 'src/sync.cpp')
-rw-r--r-- | src/sync.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sync.cpp b/src/sync.cpp index 116533eb41..3f51383ea2 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -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); |