]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: freq_ctr/threads: relax when failing to update a sliding window value
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Mar 2021 18:22:03 +0000 (19:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Mar 2021 18:36:15 +0000 (19:36 +0100)
commit6f9f2c085791918c31d970b7a36a714032f5b2b1
tree3882eb89d7e3e3aea8210785c2b93d64250e8fe0
parenta1ecbca0a50ccb273bb5cdc9f031408d782a7bcf
MINOR: freq_ctr/threads: relax when failing to update a sliding window value

The swrate_add* functions would sping fast on a failed CAS, better place
a cpu_relax() call there to reduce contention if any.
include/haproxy/freq_ctr.h