Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace most uses of boost::thread_specific_ptr with C++11 thread_local #2431

Merged
merged 2 commits into from
Dec 16, 2019

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Dec 16, 2019

There is still one use left, in ImageCache. I'm not sure how to get rid
of that yet, because the C++11 std version only works for global or static
variables, but we are using it in a class. We'll come back to that later.
In the mean time, this gets rid of all other uses.

One thing this does is fix a link error I get on MacOS when building
with EMBEDPLUGINS=0.

There is still one use left, in ImageCache. I'm not sure how to get rid
of that yet, because the C++11 std version only works for global or static
variables, but we are using it in a class. We'll come back to that later.
In the mean time, this gets rid of all other uses.

One thing this does is fix a link error I get on MacOS when building
with EMBEDPLUGINS=0.
@fpsunflower
Copy link
Contributor

LGTM

@lgritz lgritz merged commit 873b08b into AcademySoftwareFoundation:master Dec 16, 2019
@lgritz lgritz deleted the lg-tls branch December 16, 2019 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants