Function riot_sys::bindgen::sched_switch

source ยท
pub unsafe extern "C" fn sched_switch(other_prio: u16)
Expand description

@brief Yield if appropriate.

@details Either yield if other_prio is higher than the current priority, or if the current thread is not on the runqueue.

         Depending on whether the current execution is in an ISR (irq_is_in()),
         thread_yield_higher() is called or @ref sched_context_switch_request is set,
         respectively.

@param[in] other_prio The priority of the target thread.