Add tracking issue number for mutex_unpoison
This commit is contained in:
parent
fc38388bc1
commit
f7ac8e7aef
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue