commit | 6339c19cacb2010d2bf71066e436f5cc27252746 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Apr 11 01:18:39 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Apr 11 11:12:57 2021 +0200 |
tree | 0fed5531abb8d4e2b78aaa5e54e79d43886b4278 | |
parent | fc6323ad82742f8d686d953420757e5446d34f5d [diff] |
MINOR: freq_ctr: add cpu_relax in the rotation loop of update_freq_ctr_period() When counters are rotated, there is contention between the threads which can slow down the operation of the thread performing the rotation. Let's apply a cpu_relax there to let the first thread finish faster.