riot_sys::bindgen

Function msg_init_queue

Source
pub unsafe extern "C" fn msg_init_queue(array: *mut msg_t, num: c_int)
Expand description

@brief Initialize the current thread’s message queue.

@pre @p num MUST BE A POWER OF TWO!

@param[in] array Pointer to preallocated array of msg_t structures, must not be NULL. @param[in] num Number of msg_t structures in array. MUST BE POWER OF TWO!

If array resides on the stack, the containing stack frame must never be left, not even if it is the current thread’s entry function.