Add Thread::into_raw and Thread::from_raw functions#109794
Add Thread::into_raw and Thread::from_raw functions#109794h33p wants to merge 1 commit intorust-lang:masterfrom
Thread::into_raw and Thread::from_raw functions#109794Conversation
|
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
Threadinto 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_conversionfeature flag, but I'm not sure if the functions are the only place I need to add it.Also I'm unsure whether
from_rawneeds#[must_use]or not.