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