Skip to content

Guarantee that thread-local storage destructors run before join() returns #127571

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

Open
pvillela opened this issue Jul 10, 2024 · 0 comments
Open
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools A-thread Area: `std::thread` A-thread-locals Area: Thread local storage (TLS) C-discussion Category: Discussion or questions that doesn't represent real issues. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@pvillela
Copy link

As discussed in #116237 (comment), this is already the implemented behaviour but it is not guaranteed. Unless there is a good reason not to, this guarantee should be made and documented.

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 10, 2024
@jieyouxu jieyouxu added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools C-discussion Category: Discussion or questions that doesn't represent real issues. A-thread-locals Area: Thread local storage (TLS) A-thread Area: `std::thread` and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools A-thread Area: `std::thread` A-thread-locals Area: Thread local storage (TLS) C-discussion Category: Discussion or questions that doesn't represent real issues. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants