5b0cc9c1886611bd0dc47a8d39188f36363b825a
[rust-lightning] / lightning / src / sync / mod.rs
1 #[cfg(all(feature = "std", not(feature = "_bench_unstable"), test))]
2 mod debug_sync;
3 #[cfg(all(feature = "std", not(feature = "_bench_unstable"), test))]
4 pub use debug_sync::*;
5 #[cfg(all(feature = "std", not(feature = "_bench_unstable"), test))]
6 // Note that to make debug_sync's regex work this must not contain `debug_string` in the module name
7 mod test_lockorder_checks;
8
9 #[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
10 pub(crate) mod fairrwlock;
11 #[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
12 pub use {std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard}, fairrwlock::FairRwLock};
13
14 #[cfg(not(feature = "std"))]
15 mod nostd_sync;
16 #[cfg(not(feature = "std"))]
17 pub use nostd_sync::*;