Commit f01dfa8c authored by Martin Marinov's avatar Martin Marinov

Replace thread_local with BASE_THREAD_LOCAL in the PROGRESS macros.

parent 77f9b729
......@@ -164,17 +164,17 @@ private:
#define PROGRESS_DECLARE_NODE(OPRT) \
namespace Progress { \
extern thread_local Node* PROGRESS_NODE_NAME(OPRT); \
extern BASE_THREAD_LOCAL Node* PROGRESS_NODE_NAME(OPRT); \
Node* PROGRESS_MAKE_NODE_NAME(OPRT)(Node* _next = nullptr); \
} //namespace Progress {
#define PROGRESS_DEFINE_NODE_CUSTOM(TYPE, OPRT, ...) \
thread_local Progress::Node* Progress::PROGRESS_NODE_NAME(OPRT) = nullptr; \
BASE_THREAD_LOCAL Progress::Node* Progress::PROGRESS_NODE_NAME(OPRT) = nullptr; \
Progress::Node* Progress::PROGRESS_MAKE_NODE_NAME(OPRT) \
(Progress::Node* _next) \
{ \
static thread_local TYPE node(#OPRT, _next, \
static BASE_THREAD_LOCAL TYPE node(#OPRT, _next, \
Node::make_child_list( __VA_ARGS__ ));\
return OPRT##_node = &node; \
}
......
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