-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add Thread::into_raw
and Thread::from_raw
functions
#109794
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @thomcc (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot label +T-libs-api -T-libs |
The job Click to see the possible cause of the failure (guessed by this bot)
|
Duplicate of #97524 |
Allows converting a
Thread
into a raw pointer for use in futures executors, FFI and other lower level code.ACP: rust-lang/libs-team#200
I took the liberty to assign
thread_pointer_conversion
feature flag, but I'm not sure if the functions are the only place I need to add it.Also I'm unsure whether
from_raw
needs#[must_use]
or not.