commit | 595d7b72a6a58c175bfeb3c44dd51a05ffcdeab3 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Nov 14 11:28:52 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Nov 16 11:19:46 2017 +0100 |
tree | 0704724c3323516d8e9b54fb1372796a0819d844 | |
parent | 8a48f675269e61721e2a5f8d08e2158503fceef0 [diff] |
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.