pub unsafe extern "C" fn thread_add_to_list(
    list: *mut list_node_t,
    thread: *mut thread_t
)
Expand description

@brief Add thread to list, sorted by priority (internal)

This will add @p thread to @p list sorted by the thread priority. It reuses the thread’s rq_entry field. Used internally by msg and mutex implementations.

@note Only use for threads not on any runqueue and with interrupts disabled.

@param[in] list ptr to list root node @param[in] thread thread to add