struct IncomingSlot {
state: AtomicU8,
cell: UnsafeCell<MaybeUninit<Process>>,
}Expand description
新しいスレッドの受け取り口の 1 枠(2026-11-17、TODO R4 (b))。
置く側(どのコアからでも)は空の枠を CAS で取り、書き終えてから FULL にする。取り込む側は持ち主のコアの
schedule だけ(割り込みを止めた所)で、FULL の枠を読み出して EMPTY に戻す。錠も確保も使わない。
Fields§
§state: AtomicU8§cell: UnsafeCell<MaybeUninit<Process>>Implementations§
Source§impl IncomingSlot
impl IncomingSlot
Trait Implementations§
impl Sync for IncomingSlot
Auto Trait Implementations§
impl !Freeze for IncomingSlot
impl !RefUnwindSafe for IncomingSlot
impl Send for IncomingSlot
impl Unpin for IncomingSlot
impl UnsafeUnpin for IncomingSlot
impl UnwindSafe for IncomingSlot
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