struct BlockHeader<T> {
start_index: usize,
next: AtomicPtr<Block<T>>,
ready_slots: AtomicUsize,
observed_tail_position: UnsafeCell<usize>,
}
Expand description
Extra fields for a Block<T>
.
Fields§
§start_index: usize
The start index of this block.
Slots in this block have indices in start_index .. start_index + BLOCK_CAP
.
next: AtomicPtr<Block<T>>
The next block in the linked list.
ready_slots: AtomicUsize
Bitfield tracking slots that are ready to have their values consumed.
observed_tail_position: UnsafeCell<usize>
The observed tail_position
value after the block has been passed by
block_tail
.
Auto Trait Implementations§
impl<T> !Freeze for BlockHeader<T>
impl<T> !RefUnwindSafe for BlockHeader<T>
impl<T> Send for BlockHeader<T>
impl<T> !Sync for BlockHeader<T>
impl<T> Unpin for BlockHeader<T>
impl<T> !UnwindSafe for BlockHeader<T>
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