Skip to main content

__yield

Function __yield 

Source
pub unsafe fn __yield()
🔬This is a nightly-only experimental API. (stdarch_arm_hints #117218)
Available on ARM and (AArch64 or ARM or ARM64EC) and (AArch64, or ARM64EC, or target feature v6t2, or target feature v6k and non-target feature thumb-mode, or target features mclass and v6) only.
Expand description

Generates a YIELD hint instruction.

This enables multithreading software to indicate to the hardware that it is performing a task, for example a spin-lock, that could be swapped out to improve overall system performance.