]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applets: Use a bitfield to track applets activity per-thread
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Nov 2017 10:28:52 +0000 (11:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Nov 2017 10:19:46 +0000 (11:19 +0100)
commit595d7b72a6a58c175bfeb3c44dd51a05ffcdeab3
tree0704724c3323516d8e9b54fb1372796a0819d844
parent8a48f675269e61721e2a5f8d08e2158503fceef0
MINOR: applets: Use a bitfield to track applets activity per-thread

a bitfield has been added to know if there are runnable applets for a
thread. When an applet is woken up, the bits corresponding to its thread_mask
are set. When all active applets for a thread is get to be processed, the thread
is removed from active ones by unsetting its tid_bit from the bitfield.
include/proto/applet.h
src/applet.c