pub unsafe extern "C" fn msg_try_send(
m: *mut msg_t,
target_pid: kernel_pid_t,
) -> c_int
Expand description
@brief Send a message (non-blocking).
This function sends a message to another thread. The msg_t
structure has
to be allocated (e.g. on the stack) before calling the function and can be
freed afterwards. This function will never block.
@param[in] m Pointer to preallocated msg_t
structure, must
not be NULL.
@param[in] target_pid PID of target thread
@return 1, if sending was successful (message delivered directly or to a queue) @return 0, if receiver is not waiting or has a full message queue @return -1, on error (invalid PID)