core::arch::aarch64

Function __wfi

source
pub unsafe fn __wfi()
🔬This is a nightly-only experimental API. (stdarch_arm_hints #117218)
Available on AArch64 or target_arch="arm64ec" only.
Expand description

Generates a WFI (wait for interrupt) hint instruction, or nothing.

The WFI instruction allows (but does not require) the processor to enter a low-power state until one of a number of asynchronous events occurs.