commit | 772e968b06f9348afea7f5785c97214a84c75d19 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jun 18 20:32:50 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jun 22 18:57:18 2021 +0200 |
tree | 118a35b87e4951ad399eee09946800e8e8a47a90 | |
parent | 5b3927531145384bad8d2b46ca21f017afde81c7 [diff] |
MINOR: queue: make pendconn_first() take the lock by itself Dealing with the queue lock in the caller remains complicated. Let's change pendconn_first() to take the queue instead of the tree head, and handle the lock itself. It now returns an element with a locked queue or no element with an unlocked queue. It can avoid locking if the queue is already empty.