Commit 5d268ba7 authored by Martin Marinov's avatar Martin Marinov

Disable BASE_THREAD_LOCAL on all platforms: The thread_local variable...

Disable BASE_THREAD_LOCAL on all platforms: The thread_local variable initialization behavior is difficult to support downstream, and is causing bugs when using Progress::Node.
parent 87d55f0b
......@@ -24,7 +24,9 @@
#define BASE_THREAD_LOCAL_BROKEN
#endif//__GNUC__
#ifdef BASE_THREAD_LOCAL_BROKEN // if broken do not use thread_local
// disable completely this and use static non-thread storage instead due to
// bugs in thread_local variable initialization in worker threads
#if 1 //def BASE_THREAD_LOCAL_BROKEN // if broken do not use thread_local
#define BASE_THREAD_LOCAL
#else// BASE_THREAD_LOCAL_BROKEN
#define BASE_THREAD_LOCAL thread_local
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment