SMT_PAUSE(3C) | Standard C Library Functions | SMT_PAUSE(3C) |
smt_pause
—
hardware-aware busy wait
#include
<synch.h>
void
smt_pause
(void);
The
smt_pause
()
function performs a busy-wait for an implementation defined period of time.
On hardware platforms that support it, it notifies the hardware that this is
occurring in an effort to minimize resource usage. This is commonly used in
the implementation of spin loops.
December 22, 2014 | OmniOS |