#[cfg(loom)]
pub mod sync {
pub use loom::sync::*;
#[inline]
pub fn spin_loop_hint() {
atomic::spin_loop_hint();
}
}
#[cfg(not(loom))]
pub mod sync {
pub use std::sync::*;
#[inline]
pub fn spin_loop_hint() {
std::hint::spin_loop();
}
}
#[cfg(all(test, loom))]
pub mod thread {
pub use loom::thread::*;
}
#[cfg(all(test, not(loom)))]
pub mod thread {
pub use std::thread::*;
}