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.
Committed
MT-LEVEL
MT-Safe
attributes(7)
illumos December 22, 2014 illumos
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