Define CONCORE_LOW_LEVEL_YIELD_PAUSE¶
Defined in File spin_backoff.hpp
Define Documentation¶
-
CONCORE_LOW_LEVEL_YIELD_PAUSE()¶ Pause that will make the current thread yield its CPU quanta.
This is intended to be a longer pause than CONCORE_LOW_LEVEL_SHORT_PAUSE(). It is used in spin algorithms that wait for some condition to become true, but apparently that condition does not become true soon enough. Instead of blocking the CPU waiting on this condition, we give up the CPU quanta to be used by other threads; hopefully, by running other threads, that condition can become true.