-
Notifications
You must be signed in to change notification settings - Fork 14k
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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.
Description
Feature gate: #![feature(unlockable_guards)]
This is a tracking issue for unlocking nonpoison guards temporary while only holding a mutable reference to them.
Public API
// std::sync::nonpoison::mutex
#[unstable(feature = "unlockable_guards", issue = "148568")]
#[unstable(feature = "nonpoison_mutex", issue = "134645")]
impl<T: ?Sized> MutexGuard<'_, T> {
pub fn unlocked<F>(self: &mut Self, func: F) where F: FnOnce() -> ();
}// std::sync::nonpoison::rwlock
#[unstable(feature = "unlockable_guards", issue = "148568")]
#[unstable(feature = "nonpoison_mutex", issue = "134645")]
impl<T: ?Sized> RwLockWriteGuard<'_, T> {
pub fn unlocked<F>(self: &mut Self, func: F) where F: FnOnce() -> ();
}
#[unstable(feature = "unlockable_guards", issue = "148568")]
#[unstable(feature = "nonpoison_mutex", issue = "134645")]
impl<T: ?Sized> RwLockReadGuard<'_, T> {
pub fn unlocked<F>(self: &mut Self, func: F) where F: FnOnce() -> ();
}Steps / History
- ACP: ACP: Freezable Mutex Guards libs-team#679
- Implementation: #...
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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.