Remove GPR_*_TLS macros except PTHREAD#26974
Merged
ctiller merged 1 commit intogrpc:masterfrom Aug 12, 2021
tamird:remove-tls-gcc-msvc
Merged
Remove GPR_*_TLS macros except PTHREAD#26974ctiller merged 1 commit intogrpc:masterfrom tamird:remove-tls-gcc-msvc
ctiller merged 1 commit intogrpc:masterfrom
tamird:remove-tls-gcc-msvc
Conversation
Use c++11 thread_local when GPR_PTHREAD_TLS isn't defined.
ctiller
approved these changes
Aug 11, 2021
Contributor
Author
|
Are the iOS tests broken? doesn't seem like it should be affected by this change. |
tamird
commented
Aug 11, 2021
| #endif | ||
| #endif | ||
| #ifndef GPR_STDCPP_TLS | ||
| #if !(defined(__has_feature) && __has_feature(cxx_thread_local)) |
Contributor
Author
There was a problem hiding this comment.
one open question: I could move this feature detection directly into tls.h and be rid of GPR_*_TLS altogether. Do folks have a preference?
Member
There was a problem hiding this comment.
Keep it here... we blanket replace this file in some other environments with a hand-rolled one where we don't necessarily want feature detection (this case wouldn't hurt, but consistency matters)
Member
|
Running tests once more and I'll probably merge in the morning. |
Vignesh2208
pushed a commit
to Vignesh2208/grpc
that referenced
this pull request
Aug 20, 2021
Use c++11 thread_local when GPR_PTHREAD_TLS isn't defined.
lidizheng
pushed a commit
to lidizheng/grpc
that referenced
this pull request
Sep 23, 2021
Use c++11 thread_local when GPR_PTHREAD_TLS isn't defined.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use c++11 thread_local when GPR_PTHREAD_TLS isn't defined.
Follow up to #26942.
@veblush cc @ctiller