## __yield

# Function __yield

Source

    pub unsafe fn __yield()

🔬This is a nightly-only experimental API. (`stdarch_arm_hints` #117218)
Available on ARM and (target feature `v6` or AArch64 or `target_arch=arm64ec`) 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.