diff options
| author | Mica White <botahamec@outlook.com> | 2024-03-10 19:40:23 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2024-03-10 19:40:23 -0400 |
| commit | e8d25c9e6e7d5c3a5a14219fc77ea98760cef790 (patch) | |
| tree | 9436371726e0250ad38d33fa24fbf33271d4ec13 /src/rwlock.rs | |
| parent | 0c519b6c7801aa6a085551c8e144f0336e615870 (diff) | |
Make spin and parking lot optional
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 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> { |
