#include <synch.h> void smt_pause(void);
The smt_pause() function delays for a short implementation-dependent period before returning to the caller, consuming as few processor resources as possible. This primitive is recommended for use in busy wait loops to lessen the impact the loop has on the rest of the system. For example, on CMT systems it enables other hardware strands sharing the core to go faster during the busy wait.
Typical usage is as follows:
volatile int *wait; while (*wait == 1) smt_pause();
See attributes(5) for descriptions of the following attributes: