Function riot_sys::msg_try_receive

source ·
pub unsafe extern "C" fn msg_try_receive(m: *mut msg_t) -> c_int
Expand description

@brief Try to receive a message.

This function does not block if no message can be received.

@param[out] m Pointer to preallocated msg_t structure, must not be NULL.

@return 1, if a message was received @return -1, otherwise.