Move `debug_sync` to the new `sync` folder
[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
6 #[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
7 pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
8 #[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
9 pub use crate::util::fairrwlock::FairRwLock;
10
11 #[cfg(not(feature = "std"))]
12 mod nostd_sync;
13 #[cfg(not(feature = "std"))]
14 pub use nostd_sync::*;