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:
Alex Crichton 2015-06-10 18:43:08 -07:00
parent 68b628b165
commit c032d6fd39
3 changed files with 6 additions and 6 deletions

View file

@ -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()
}