-
Notifications
You must be signed in to change notification settings - Fork 14.1k
thread_local! foreign threads docs #146928
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
thread_local! foreign threads docs #146928
Conversation
- Add Behavior with Foreign Threads section - Document Unix/Windows platform differences - Include runtime compatibility matrix - Add cross-reference example to LocalKey
|
Team or group rust-lang team names can be found at https://github.com/rust-lang/team/tree/master/teams. |
|
rustbot has assigned @Mark-Simulacrum. Use |
|
Both the description and content of this PR appear to be AI-generated. We are not interested in AI-generated PRs. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
@Noratrieb, I understand the concern about AI-generated content, but I want to clarify that this PR is based on my own empirical research. I conducted extensive testing across C, C++, Go, Python, and Ruby to understand thread_local! behavior with foreign threads. I'm happy to discuss the research methodology or make any changes needed. |
|
Research into the problem space is welcome, as long as that research was conducted with an appropriate amount of AI usage (as otherwise the data may just all be wrong). |
Document thread_local! foreign thread behavior
This PR adds comprehensive documentation about
thread_local!andLocalKeybehavior when used in dynamic libraries loaded by foreign runtimes.
Research Basis
Key Findings
Documentation Added
#[no_mangle]Issue: #136546
r? rust-lang/libs-team