diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-04-27 15:13:02 -0500 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-04-27 17:17:43 -0500 |
commit | 911c63a51c690dd1a97dfc587097277029baf00f (patch) | |
tree | 3cfe8539d127dce90996abb50704a2eb3d2b3348 /sysdeps/generic/dl-osinfo.h | |
parent | 7c477b57a31487eda516db02b9e04f22d1a6e6af (diff) | |
download | glibc-911c63a51c690dd1a97dfc587097277029baf00f.tar.gz glibc-911c63a51c690dd1a97dfc587097277029baf00f.tar.xz glibc-911c63a51c690dd1a97dfc587097277029baf00f.zip |
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>
Diffstat (limited to 'sysdeps/generic/dl-osinfo.h')
0 files changed, 0 insertions, 0 deletions