584338031fc060bd5178a2321802767c5792101c
[rust-lightning] / lightning / src / sync / mod.rs
1 #[cfg(all(feature = "std", not(feature = "_bench_unstable"), test))]
2 pub use crate::debug_sync::*;
3 #[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
4 pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
5 #[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
6 pub use crate::util::fairrwlock::FairRwLock;
7
8 #[cfg(not(feature = "std"))]
9 mod nostd_sync;
10 #[cfg(not(feature = "std"))]
11 pub use nostd_sync::*;