diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-13 16:39:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-13 16:39:58 +0200 |
commit | a4199b808fd678f74935d540490eae9dc78a9ffe (patch) | |
tree | 16d1f0e583c926838b92722e000fae2c1ac4aa9e /butl/utility.cxx | |
parent | b05e24a7f512c1f005dbcb67b3fce8b3d16e110e (diff) |
Fix thread safety issue
Diffstat (limited to 'butl/utility.cxx')
-rw-r--r-- | butl/utility.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/butl/utility.cxx b/butl/utility.cxx index d6f418c..032d178 100644 --- a/butl/utility.cxx +++ b/butl/utility.cxx @@ -6,5 +6,12 @@ namespace butl { +#ifndef BUTL_CXX17_UNCAUGHT_EXCEPTIONS +#ifdef BUTL_CXX11_THREAD_LOCAL + thread_local +#else + __thread +#endif bool exception_unwinding_dtor = false; +#endif } |