]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: thread: don't keep the redundant _locked counter
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Feb 2025 09:56:44 +0000 (10:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Feb 2025 17:34:43 +0000 (18:34 +0100)
commit4168d1278cab58ba089cfe7acfed781b3a747023
treeb2a5e7b0331f5c7521f4ea8589d728a982b72ceb
parenta22550fbd753e7ae51f9af1d678e96fab120a77e
DEBUG: thread: don't keep the redundant _locked counter

Now that we have our sums by bucket, the _locked counter is redundant
since it's always equal to the sum of all entries. Let's just get rid
of it and replace its consumption with a loop over all buckets, this
will reduce the overhead of taking each lock at the expense of a tiny
extra effort when dumping all locks, which we don't care about.
include/haproxy/thread-t.h
src/thread.c