SMT_PAUSE(3C) Standard C Library Functions SMT_PAUSE(3C)

smt_pausehardware-aware busy wait

#include <synch.h>

void
smt_pause(void);

The () 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.

attributes(7)

December 22, 2014 OmniOS