From e8d25c9e6e7d5c3a5a14219fc77ea98760cef790 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sun, 10 Mar 2024 19:40:23 -0400 Subject: Make spin and parking lot optional --- src/mutex.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mutex.rs') diff --git a/src/mutex.rs b/src/mutex.rs index e7a439c..0d67f33 100644 --- a/src/mutex.rs +++ b/src/mutex.rs @@ -8,9 +8,11 @@ use lock_api::RawMutex; use crate::key::Keyable; /// A spinning mutex +#[cfg(feature = "spin")] pub type SpinLock = Mutex>; /// A parking lot mutex +#[cfg(feature = "parking_lot")] pub type ParkingMutex = Mutex; /// A mutual exclusion primitive useful for protecting shared data, which -- cgit v1.2.3