commit | 56c1cfb179d63f61ee54cd7fd26c22d44e1bc08d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Oct 21 11:45:44 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 22 17:32:28 2020 +0200 |
tree | 6844700214a6798bd97aca56f8b68da7fba3b93c | |
parent | c7eedf7a5a8992c911c6004fb3983afb45ef428d [diff] |
OPTIM: queue: make the nbpend counters atomic Instead of incrementing, decrementing them and updating their max under the lock, make them atomic and keep them out of the lock as much as possible. For __pendconn_unlink_* it would be wide to decide to move these counters outside of the function, inside the callers so that a single atomic op can be done per counter even for groups of operations.