1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#[cfg(any(test, feature = "lock_free_delays"))]
mod debug_delay;
#[cfg(any(test, feature = "lock_free_delays"))]
pub use self::debug_delay::debug_delay;
/// This function is useful for inducing random jitter into our atomic
/// operations, shaking out more possible interleavings quickly. It gets
/// fully elliminated by the compiler in non-test code.
#[cfg(not(any(test, feature = "lock_free_delays")))]
pub fn debug_delay() {}
pub use crossbeam_epoch::{
pin, unprotected, Atomic, Collector, CompareAndSetError, Guard,
LocalHandle, Owned, Shared,
};
pub use std::sync::atomic;