commit | aacd2fa18a33d3b6df9679547f4d6cd82dad7101 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Fri Nov 08 14:40:18 2019 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Wed Nov 20 14:53:05 2019 +0100 |
tree | 01a3b0b97ea3311e81c25d093c1e7b17c19bf13f | |
parent | c8175efd03eea93af1e264f6b00c8caacb466ce7 [diff] |
MINOR: freq_ctr: Make the sliding window sums thread-safe swrate_add() and swrate_add_scaled() now rely on the CAS atomic operation. So the sliding window sums are atomically updated. (cherry picked from commit e2e8c6779e54ab86edd80697fe1e5c80633eaca6) Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>