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 f5f0f2b..259c247 100644
--- a/src/rwlock.rs
+++ b/src/rwlock.rs
@@ -7,8 +7,10 @@ use lock_api::RawRwLock;
use crate::key::Keyable;
+#[cfg(feature = "spin")]
pub type SpinRwLock<T> = RwLock<T, spin::RwLock<()>>;
+#[cfg(feature = "parking_lot")]
pub type ParkingRwLock<T> = RwLock<T, parking_lot::RawRwLock>;
pub struct RwLock<T: ?Sized, R> {