3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

Enable thread_local code more broadly.

This was only being enabled on Windows, Linux, and FreeBSD. (FreeBSD
only had it enabled in the legacy build system, not in cmake.)

`thread_local` is part of C++11, so now that we require C++17
or later and more recent compilers, this should work everywhere
that threading does, so only disable it within a `SINGLE_THREAD`
build.
This commit is contained in:
Bruce Mitchener 2022-08-01 23:01:49 +07:00 committed by Nikolaj Bjorner
parent 82d853e5f8
commit 9a99c78ffb
3 changed files with 1 additions and 6 deletions

View file

@ -215,7 +215,7 @@ void * memory::allocate(char const* file, int line, char const* obj, size_t s) {
}
#endif
#if !defined(SINGLE_THREAD) && (defined(_WINDOWS) || defined(_USE_THREAD_LOCAL))
#if !defined(SINGLE_THREAD)
// ==================================
// ==================================
// THREAD LOCAL VERSION