]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dynbuf: provide a b_dequeue() variant for multi-thread
authorWilly Tarreau <w@1wt.eu>
Tue, 14 May 2024 17:19:23 +0000 (19:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 May 2024 17:37:12 +0000 (19:37 +0200)
commitb0349cf2deea0594f73035ecf18b7054cb7a52d7
treee79670fe524bb9af3fa16bdf45e5cc227248942e
parentedb99e296d6f4e463523fd64c6cacce2e904df3d
MINOR: dynbuf: provide a b_dequeue() variant for multi-thread

In order to forcefully unregister a buffer waiter during an inter-thread
takeover under isolation, we'll need to that the function works without
th_ctx but the target thread's ctx instead. Let's implement this by
passing the target thread as an argument. Now b_dequeue() simply calls
this one with tid. It's OK it's not on that critical a path, especially
since the list has been checked for existence before performing the call.
include/haproxy/dynbuf.h