]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: applet: remove unused thread_mask
authorWilly Tarreau <w@1wt.eu>
Tue, 13 Jul 2021 16:01:46 +0000 (18:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Jul 2021 16:20:34 +0000 (18:20 +0200)
commit4c6986a6bcc9b41c4888bda4ce791f935b979fe4
treec40634e7ae919b262755f53d61ec41e724a8b4ac
parentbefeae88e8c7e2cbc19a63420bfa7d67ec176342
CLEANUP: applet: remove unused thread_mask

Since 1.9 with commit 673867c35 ("MAJOR: applets: Use tasks, instead
of rolling our own scheduler.") the thread_mask field of the appctx
became unused, but the code hadn't been cleaned for this. The appctx
has its own task and the task's thread_mask is the one to be displayed.

It's worth noting that all calls to appctx_new() pass tid_bit as the
thread_mask. This makes sense, and it could be convenient to decide
that this becomes the norm and to simplify the API.
include/haproxy/applet-t.h
include/haproxy/applet.h
src/stream.c