commit | e327b4a73e3ac5fce223aa34d1ed293ad8a57cf4 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Dec 19 17:19:45 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Dec 20 14:51:12 2022 +0100 |
tree | 4304712031dd5e9aeed6e039a1a5e2be708e7aad | |
parent | 284cfc67b887e6a6e92271c863b129b1c0f37845 [diff] |
MINOR: freq_ctr: add opportunistic versions of swrate_add() Some uses of swrate_add() only consist in getting a rough estimate of a frequency. There are cases where speed matters more than accuracy (e.g. pools). For such use cases, let's just stop looping on the CAS, if the update fails, another thread is already providing input, and it's not dramatic to lose the race. All these functions are now suffixed with "_opportunistic".