Skip to main content

has_waitpkg

Function has_waitpkg 

Source
pub fn has_waitpkg() -> bool
Expand description

Returns true when the CPU advertises the WAITPKG ISA extension (UMONITOR / UMWAIT / TPAUSE).

On x86_64 the result is cached after the first probe. On non-x86_64 targets this always returns false.