aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_timing.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-03-21 21:28:38 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-03-27 17:45:22 -0400
commit27c33ab73fd03d659654c49967a081214daf6ac2 (patch)
treece139e675dce91045a05fb3d5e44803af9931d0e /src/core/core_timing.cpp
parentd2cfe25b07906f36c688ccacde30e3dc50123e8f (diff)
x64: Add MicroSleep
MicroSleep allows the processor to pause for a "short" amount of time (in the microsecond range). This is useful for spin-waiting that does not require nanosecond precision. This uses the new TPAUSE instruction introduced on Intel's newest processors as part of the waitpkg instructions. For CPUs that do not support waitpkg instructions, this is equivalent to yield(). Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
Diffstat (limited to 'src/core/core_timing.cpp')
0 files changed, 0 insertions, 0 deletions