std: Stabilize the sync_poison feature
These accessor/constructor methods for a `PoisonError` are quite standard for a wrapper type and enable manipulation of the underlying type.
This commit is contained in:
parent
68b628b165
commit
c032d6fd39
3 changed files with 6 additions and 6 deletions
|
|
@ -238,7 +238,7 @@ impl<T: ?Sized> Mutex<T> {
|
|||
/// time. You should not trust a `false` value for program correctness
|
||||
/// without additional synchronization.
|
||||
#[inline]
|
||||
#[unstable(feature = "sync_poison")]
|
||||
#[stable(feature = "sync_poison", since = "1.2.0")]
|
||||
pub fn is_poisoned(&self) -> bool {
|
||||
self.inner.poison.get()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue