mutex.rs 398 B

1234567891011121314151617
  1. #[cfg(not(any(feature = "std", all(loom, test))))]
  2. pub(crate) use self::spin_impl::*;
  3. #[cfg(any(not(feature = "std"), test))]
  4. mod spin_impl;
  5. feature! {
  6. #![all(feature = "std", not(all(loom, test)))]
  7. #[allow(unused_imports)]
  8. pub(crate) use parking_lot::{Mutex, MutexGuard, const_mutex};
  9. }
  10. feature! {
  11. #![all(loom, test)]
  12. mod loom_impl;
  13. pub(crate) use self::loom_impl::*;
  14. }