Define CONCORE_LOW_LEVEL_SHORT_PAUSE

Define Documentation

CONCORE_LOW_LEVEL_SHORT_PAUSE()

Pauses the CPU for a short while.

The intent of this macro is to pause the CPU, without consuming energy, while waiting for some other condition to happen. The pause should be sufficiently small so that the current thread will not give up its work quanta.

This pause should be smaller than the pause caused by CONCORE_LOW_LEVEL_YIELD_PAUSE.

This is used in spin implementations that are waiting for certain conditions to happen, and it is expected that these condition will become true in a very short amount of time.

The implementation of this uses platform-specific instructions.

See

CONCORE_LOW_LEVEL_YIELD_PAUSE, concore::v1::spin_backoff