riot_sys

Function msg_send_to_self

Source
pub unsafe extern "C" fn msg_send_to_self(m: *mut msg_t) -> c_int
Expand description

@brief Send a message to the current thread. @details Will work only if the thread has a message queue.

Will be automatically chosen instead of @c msg_send if @c target_pid == @c thread_pid. This function never blocks.

@param m pointer to message structure

@return 1 if sending was successful @return 0 if the thread’s message queue is full (or inexistent)