MINOR: freq_ctr: Make the sliding window sums thread-safe
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 8 Nov 2019 13:40:18 +0000 (14:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Nov 2019 12:43:08 +0000 (13:43 +0100)
commite2e8c6779e54ab86edd80697fe1e5c80633eaca6
tree80ed62109c397f6237f1779945cdee651707c081
parentb2e58492b141f1e2f6d9db4c50b8dd0e5db63ee9
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.
include/proto/freq_ctr.h