Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
CoMISo
Base
Commits
f01dfa8c
Commit
f01dfa8c
authored
Jul 26, 2017
by
Martin Marinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace thread_local with BASE_THREAD_LOCAL in the PROGRESS macros.
parent
77f9b729
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Progress/ProgressNode.hh
Progress/ProgressNode.hh
+3
-3
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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