diff options
| author | Botahamec <botahamec@outlook.com> | 2024-12-21 11:27:09 -0500 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2024-12-21 11:27:09 -0500 |
| commit | b2281e6aec631dc7c6d69edef9268ce7e00ed1dc (patch) | |
| tree | 4a3d9059e291016dcfaec8b08ac4aee48a7b815a /src/mutex.rs | |
| parent | 0ddbb5efa57fb36b2c83a5cd1dc43a5cf426e3ee (diff) | |
Implement lock death, but without any usages
Diffstat (limited to 'src/mutex.rs')
| -rw-r--r-- | src/mutex.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mutex.rs b/src/mutex.rs index 51089c4..004e5d4 100644 --- a/src/mutex.rs +++ b/src/mutex.rs @@ -4,6 +4,7 @@ use std::marker::PhantomData; use lock_api::RawMutex; use crate::key::Keyable; +use crate::poisonable::PoisonFlag; mod guard; mod mutex; @@ -128,6 +129,7 @@ pub type ParkingMutex<T> = Mutex<T, parking_lot::RawMutex>; /// [`ThreadKey`]: `crate::ThreadKey` pub struct Mutex<T: ?Sized, R> { raw: R, + poison: PoisonFlag, data: UnsafeCell<T>, } |
