aboutsummaryrefslogtreecommitdiff
path: root/src/common/string_util.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
commitd260571440e16ce9b4a60aa6c93bf79dc95169a2 (patch)
treece139e675dce91045a05fb3d5e44803af9931d0e /src/common/string_util.cpp
parent95adf299e4a9706c657627735f6e40fb3dafd729 (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/common/string_util.cpp')
0 files changed, 0 insertions, 0 deletions