#[repr(align(64))]pub struct CacheLineAtomicBool {
pub value: AtomicBool,
}Expand description
A single-bit flag padded to a full cache line (64 bytes) to prevent false sharing when an array of flags is accessed concurrently from different cores.
Used for the per-core has_work array: the sender core sets the destination
core’s flag after a ring push; the drain task reads it to skip ring scanning
when there is no pending inter-core traffic.
Fields§
§value: AtomicBoolImplementations§
Auto Trait Implementations§
impl !Freeze for CacheLineAtomicBool
impl RefUnwindSafe for CacheLineAtomicBool
impl Send for CacheLineAtomicBool
impl Sync for CacheLineAtomicBool
impl Unpin for CacheLineAtomicBool
impl UnsafeUnpin for CacheLineAtomicBool
impl UnwindSafe for CacheLineAtomicBool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more