summaryrefslogtreecommitdiff
path: root/src/rwlock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rwlock.rs')
-rw-r--r--src/rwlock.rs2
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>,
}