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/rwlock.rs | |
| parent | 0ddbb5efa57fb36b2c83a5cd1dc43a5cf426e3ee (diff) | |
Implement lock death, but without any usages
Diffstat (limited to 'src/rwlock.rs')
| -rw-r--r-- | src/rwlock.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rwlock.rs b/src/rwlock.rs index c1d9a78..9b65a0b 100644 --- a/src/rwlock.rs +++ b/src/rwlock.rs @@ -4,6 +4,7 @@ use std::marker::PhantomData; use lock_api::RawRwLock; use crate::key::Keyable; +use crate::poisonable::PoisonFlag; mod rwlock; @@ -46,6 +47,7 @@ pub type ParkingRwLock<T> = RwLock<T, parking_lot::RawRwLock>; /// [`DerefMut`]: `std::ops::DerefMut` pub struct RwLock<T: ?Sized, R> { raw: R, + poison: PoisonFlag, data: UnsafeCell<T>, } |
