diff --git a/tokio/src/sync/mutex.rs b/tokio/src/sync/mutex.rs index 474f53688..cf42c3e1f 100644 --- a/tokio/src/sync/mutex.rs +++ b/tokio/src/sync/mutex.rs @@ -26,6 +26,11 @@ //! } //! ``` //! +//! Note that in contrast to `std::sync::Mutex`, this implementation does not +//! poison the mutex when a thread holding the `MutexGuard` panics. In such a +//! case, the mutex will be unlocked. If the panic is caught, this might leave +//! the data protected by the mutes in an inconsistent state. +//! //! [`Mutex`]: struct.Mutex.html //! [`MutexGuard`]: struct.MutexGuard.html