diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-04-27 15:13:02 -0500 |
---|---|---|
committer | Sunil K Pandey <skpgkp2@gmail.com> | 2022-09-28 13:53:11 -0700 |
commit | 870d564e7cd7335734273c8f0fc01a49f5feccc5 (patch) | |
tree | 2adcd1e77fa066596ab85e7f941659e1118f8f96 /inet/getrpcbynumber.c | |
parent | 8b9ad5ec93ce8941a1e53cc3beea84293d998d2c (diff) | |
download | glibc-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/getrpcbynumber.c')
0 files changed, 0 insertions, 0 deletions