Skip to content
Commit 911c63a5 authored by Noah Goldstein's avatar Noah Goldstein
Browse files

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: default avatarH.J. Lu <hjl.tools@gmail.com>
parent 7c477b57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment