Skip to main content

nros_platform_yield_now

Function nros_platform_yield_now 

Source
pub unsafe extern "C" fn nros_platform_yield_now()
Expand description

Voluntarily yield the current task / thread. On bare-metal, core::hint::spin_loop() is acceptable; on RTOSes use the native cooperative-yield primitive (k_yield, vPortYield, tx_thread_relinquish, sched_yield, …). RTOS yields are not ISR-safe.