Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
Base
Commits
f01dfa8c
Commit
f01dfa8c
authored
Jul 26, 2017
by
Martin Marinov
Browse files
Replace thread_local with BASE_THREAD_LOCAL in the PROGRESS macros.
parent
77f9b729
Changes
1
Hide whitespace changes
Inline
Side-by-side
Progress/ProgressNode.hh
View file @
f01dfa8c
...
...
@@ -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; \
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment