Tracking Issue for {Mutex, RwLock}::data_ptr #140368
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
S-tracking-unimplemented
Status: The feature has not been implemented.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(mutex_data_ptr)]
,#![feature(rwlock_data_ptr)]
This is a tracking issue for allowing unguarded access to the inner value of a
Mutex
orRwLock
. Previous discussion here: rust-lang/libs-team#531Public API
Steps / History
(Remember to update the
S-tracking-*
label when checking boxes.)Unresolved Questions
LockResult
or not?*mut T
like existing APIs (Cell::as_ptr
/MaybeUninit::as[_mut]_ptr
/Vec::as_ptr
/ ...) or be more precise and returnNonNull<T>
?Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: