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

NAME


smt_pause - hardware-aware busy wait

SYNOPSIS


#include <synch.h>

void
smt_pause(void);

DESCRIPTION


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.

INTERFACE STABILITY


Committed

MT-LEVEL
MT-Safe

SEE ALSO


attributes(7)

illumos December 22, 2014 illumos

tribblix@gmail.com :: GitHub :: Privacy