pub struct BroadcastHeader {
pub magic: u32,
pub capacity: u32,
pub producer_seq: AtomicU64,
pub consumer_seqs: [AtomicU64; 16],
pub consumer_active: [AtomicU32; 16],
/* private fields */
}Expand description
Header is two cache lines so the producer_seq and the consumer seq array can sit on separate lines, reducing false-sharing between producer-side and consumer-side hot atomics.
Fields§
§magic: u32§capacity: u32§producer_seq: AtomicU64§consumer_seqs: [AtomicU64; 16]§consumer_active: [AtomicU32; 16]Auto Trait Implementations§
impl !Freeze for BroadcastHeader
impl RefUnwindSafe for BroadcastHeader
impl Send for BroadcastHeader
impl Sync for BroadcastHeader
impl Unpin for BroadcastHeader
impl UnsafeUnpin for BroadcastHeader
impl UnwindSafe for BroadcastHeader
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