1 2 3 4 5 6 7 8 9 10 11 12
pub type CacheAlignedU64 = CacheAligned<crate::sync::AtomicU64>; #[repr(C, align(64))] pub struct CacheAligned<T>(pub T); impl<T> core::ops::Deref for CacheAligned<T> { type Target = T; fn deref(&self) -> &Self::Target { &self.0 } }