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

Split the thread-id TLS into 2 variables #44

Merged
merged 2 commits into from Feb 8, 2023
Merged

Split the thread-id TLS into 2 variables #44

merged 2 commits into from Feb 8, 2023

Conversation

Amanieu
Copy link
Owner

@Amanieu Amanieu commented Dec 12, 2022

This allows the fast path to avoid a branch which checks if the TLS
destructor for the thread ID has been registered.

This allows the fast path to avoid a branch which checks if the TLS
destructor for the thread ID has been registered.
terrarier2111 added a commit to terrarier2111/thread_local-rs that referenced this pull request Dec 14, 2022
@terrarier2111
Copy link
Contributor

Is there a reason this didn't get merged yet? (sorry to bother you again about this)

@Amanieu Amanieu merged commit 1466993 into master Feb 8, 2023
@Amanieu Amanieu deleted the split-tls branch February 8, 2023 17:48
@Amanieu
Copy link
Owner Author

Amanieu commented Feb 8, 2023

Published 1.1.5.

Amanieu added a commit that referenced this pull request Feb 10, 2023
This was introduced in #44 but is actually broken since a thread could
be assigned the ID of an existing slot in the table if another thread
previously using that ID has exited.
Amanieu added a commit that referenced this pull request Feb 10, 2023
This was introduced in #44 but is actually broken since a thread could
be assigned the ID of an existing slot in the table if another thread
previously using that ID has exited.
terrarier2111 pushed a commit to terrarier2111/thread_local-rs that referenced this pull request Jun 13, 2023
This was introduced in Amanieu#44 but is actually broken since a thread could
be assigned the ID of an existing slot in the table if another thread
previously using that ID has exited.
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