Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CoMISo
Base
Commits
f01dfa8c
Commit
f01dfa8c
authored
7 years ago
by
Martin Marinov
Browse files
Options
Downloads
Patches
Plain Diff
Replace thread_local with BASE_THREAD_LOCAL in the PROGRESS macros.
parent
77f9b729
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Progress/ProgressNode.hh
+3
-3
3 additions, 3 deletions
Progress/ProgressNode.hh
with
3 additions
and
3 deletions
Progress/ProgressNode.hh
+
3
−
3
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; \
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment