1
Fork 0

Add tracking issue number for mutex_unpoison

This commit is contained in:
Thayne McCombs 2022-04-27 00:05:34 -06:00
parent fc38388bc1
commit f7ac8e7aef
2 changed files with 2 additions and 2 deletions

View file

@ -392,7 +392,7 @@ impl<T: ?Sized> Mutex<T> {
/// assert_eq!(mutex.is_poisoned(), false); /// assert_eq!(mutex.is_poisoned(), false);
/// ``` /// ```
#[inline] #[inline]
#[unstable(feature = "mutex_unpoison", issue = "none")] #[unstable(feature = "mutex_unpoison", issue = "96469")]
pub fn clear_poison(guard: &MutexGuard<'_, T>) { pub fn clear_poison(guard: &MutexGuard<'_, T>) {
guard.lock.poison.clear(); guard.lock.poison.clear();
} }

View file

@ -395,7 +395,7 @@ impl<T: ?Sized> RwLock<T> {
/// assert_eq!(lock.is_poisoned(), false); /// assert_eq!(lock.is_poisoned(), false);
/// ``` /// ```
#[inline] #[inline]
#[unstable(feature = "mutex_unpoison", issue = "none")] #[unstable(feature = "mutex_unpoison", issue = "96469")]
pub fn clear_poison(guard: &RwLockWriteGuard<'_, T>) { pub fn clear_poison(guard: &RwLockWriteGuard<'_, T>) {
guard.lock.poison.clear(); guard.lock.poison.clear();
} }