aboutsummaryrefslogtreecommitdiffstats
path: root/undocumented.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-04 10:18:42 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-04 11:13:39 +0000
commit5b872e8cf9f5b6800512005abb310596dc9ea771 (patch)
tree977e1b5e115db83b20357b90d63b54eb83b148b7 /undocumented.h
parentSpin less and more efficiently (diff)
downloadwintun-5b872e8cf9f5b6800512005abb310596dc9ea771.tar.xz
wintun-5b872e8cf9f5b6800512005abb310596dc9ea771.zip
Use performance counter for less spinning
Previously we had to spin for a minimum of 15ms because the tick interval is 156250 on NT. On linux, usually trips to the high performance timers are discouraged because if they don't hit the RDTSC path (due to being unstable or the like), they hit more expensive hardware. I assume that's probably the same on NT, but all of tcpip.sys and ndis.sys uses the performance counters too, so what are we going to do? Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'undocumented.h')
0 files changed, 0 insertions, 0 deletions