summaryrefslogtreecommitdiff
path: root/inet/test-inet6_opt.c
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-04-27 15:13:02 -0500
committerSunil K Pandey <skpgkp2@gmail.com>2022-09-28 13:53:11 -0700
commit870d564e7cd7335734273c8f0fc01a49f5feccc5 (patch)
tree2adcd1e77fa066596ab85e7f941659e1118f8f96 /inet/test-inet6_opt.c
parent8b9ad5ec93ce8941a1e53cc3beea84293d998d2c (diff)
downloadglibc-870d564e7cd7335734273c8f0fc01a49f5feccc5.tar.gz
sysdeps: Add 'get_fast_jitter' interace in fast-jitter.h
'get_fast_jitter' is meant to be used purely for performance purposes. In all cases it's used it should be acceptable to get no randomness (see default case). An example use case is in setting jitter for retries between threads at a lock. There is a performance benefit to having jitter, but only if the jitter can be generated very quickly and ultimately there is no serious issue if no jitter is generated. The implementation generally uses 'HP_TIMING_NOW' iff it is inlined (avoid any potential syscall paths). Reviewed-by: H.J. Lu <hjl.tools@gmail.com> (cherry picked from commit 911c63a51c690dd1a97dfc587097277029baf00f)
Diffstat (limited to 'inet/test-inet6_opt.c')
0 files changed, 0 insertions, 0 deletions