Move fairrwlock to the sync module

This commit is contained in:
Matt Corallo 2023-02-07 19:39:24 +00:00
parent 9f102037a9
commit 9422370dd2
3 changed files with 2 additions and 4 deletions

View file

@ -7,9 +7,9 @@ pub use debug_sync::*;
mod test_lockorder_checks;
#[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
pub(crate) mod fairrwlock;
#[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
pub use crate::util::fairrwlock::FairRwLock;
pub use {std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard}, fairrwlock::FairRwLock};
#[cfg(not(feature = "std"))]
mod nostd_sync;

View file

@ -27,8 +27,6 @@ pub mod wakers;
pub(crate) mod atomic_counter;
pub(crate) mod byte_utils;
pub(crate) mod chacha20;
#[cfg(all(any(feature = "_bench_unstable", not(test)), feature = "std"))]
pub(crate) mod fairrwlock;
#[cfg(fuzzing)]
pub mod zbase32;
#[cfg(not(fuzzing))]