1 | //! This module abstracts over `loom` and `std::sync` depending on whether we |
---|---|
2 | //! are running tests or not. |
3 | |
4 | #![allow(unused)] |
5 | |
6 | #[cfg(not(all(test, loom)))] |
7 | mod std; |
8 | #[cfg(not(all(test, loom)))] |
9 | pub(crate) use self::std::*; |
10 | |
11 | #[cfg(all(test, loom))] |
12 | mod mocked; |
13 | #[cfg(all(test, loom))] |
14 | pub(crate) use self::mocked::*; |
15 |