#[repr(C, align(64))]pub struct UrdHeader {
pub magic: u64,
pub n_mailboxes: u64,
pub owner_pid: AtomicU64,
pub epoch: AtomicU64,
pub _pad_meta: [u8; 24],
pub rr_cursor: AtomicU64,
pub _pad_rr: [u8; 56],
}Expand description
File header. Cache-line aligned.
Fields§
§magic: u64Magic constant.
n_mailboxes: u64Number of mailboxes (one per thief).
owner_pid: AtomicU64Pid of the owner process; informational. Cleared on
close_owner().
epoch: AtomicU64Shutdown epoch counter.
_pad_meta: [u8; 24]Padding to push rr_cursor to its own cache line.
rr_cursor: AtomicU64Round-robin cursor the owner uses to pick the next target mailbox when no explicit target is supplied.
_pad_rr: [u8; 56]Padding to round to two cache lines.
Auto Trait Implementations§
impl !Freeze for UrdHeader
impl RefUnwindSafe for UrdHeader
impl Send for UrdHeader
impl Sync for UrdHeader
impl Unpin for UrdHeader
impl UnsafeUnpin for UrdHeader
impl UnwindSafe for UrdHeader
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