-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Remove GPR_*_TLS macros except PTHREAD #26974
Conversation
Use c++11 thread_local when GPR_PTHREAD_TLS isn't defined.
Are the iOS tests broken?
doesn't seem like it should be affected by this change. |
#endif | ||
#endif | ||
#ifndef GPR_STDCPP_TLS | ||
#if !(defined(__has_feature) && __has_feature(cxx_thread_local)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
Running tests once more and I'll probably merge in the morning. |
Use c++11 thread_local when GPR_PTHREAD_TLS isn't defined.
Use c++11 thread_local when GPR_PTHREAD_TLS isn't defined.
Use c++11 thread_local when GPR_PTHREAD_TLS isn't defined.
Follow up to #26942.
@veblush cc @ctiller