#[repr(C)]pub struct mbox_t {
pub readers: list_node_t,
pub writers: list_node_t,
pub cib: cib_t,
pub msg_array: *mut msg_t,
}
Expand description
@brief Mailbox struct definition
Fields§
§readers: list_node_t
< list of threads waiting for message
writers: list_node_t
< list of threads waiting to send
cib: cib_t
< cib for msg array
msg_array: *mut msg_t
< ptr to array of msg queue
Trait Implementations§
impl Copy for mbox_t
Auto Trait Implementations§
impl RefUnwindSafe for mbox_t
impl !Send for mbox_t
impl !Sync for mbox_t
impl Unpin for mbox_t
impl UnwindSafe for mbox_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