-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for Thread::{into_raw, from_raw} #97523
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(thread_raw)]This is a tracking issue for
Thread::into_rawandThread::from_raw.These functions allow conversions between a
Threadand a raw pointer, which is useful in concurrent code as it allows storing aThreadin anAtomicPtr.Public API
Steps / History
Thread::into_rawandThread::from_rawlibs-team#200Thread::{into_raw, from_raw}#97524Unresolved Questions
Threadcan always be represented as a pointer/integer?