riot_sys::bindgen

Function _mbox_get

Source
pub unsafe extern "C" fn _mbox_get(
    mbox: *mut mbox_t,
    msg: *mut msg_t,
    blocking: c_int,
) -> c_int
Expand description

@brief Get message from mailbox

If the mailbox is empty, this function will return right away.

@internal

@param[in] mbox ptr to mailbox to operate on @param[in] msg ptr to storage for retrieved message @param[in] blocking block if 1, don’t block if 0

@return 1 if msg could be retrieved @return 0 otherwise