Skip to content

[5.5][Concurrency] Use pthread_specific for thread-local storage on Darwin. #38163

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

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Jun 29, 2021

Cherry-pick #38162 to 5.5.

The pthread_specific APIs are better than C++ thread_local storage on Darwin since we can use Swift's reserved pthread keys there.

rdar://79504652

…arwin.

The pthread_specific APIs are better than C++ thread_local storage on Darwin since we can use Swift's reserved pthread keys there.

rdar://79504652
(cherry picked from commit 190d3fd)
@mikeash mikeash requested a review from rjmccall June 29, 2021 21:03
@mikeash mikeash requested a review from a team as a code owner June 29, 2021 21:03
@mikeash
Copy link
Contributor Author

mikeash commented Jun 29, 2021

@swift-ci please test

@mikeash
Copy link
Contributor Author

mikeash commented Jul 1, 2021

@swift-ci please test windows platform

@DougGregor DougGregor merged commit bbb018b into swiftlang:release/5.5 Jul 2, 2021
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.

3 participants