]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tasks: Use a bitfield to track tasks activity per-thread
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Nov 2017 09:26:53 +0000 (10:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Nov 2017 10:19:46 +0000 (11:19 +0100)
commit3911ee85df812e63d359f2d6e8ef0fb663254249
treee027d8065caafa61beb0ca4d853d3d6d241aeab7
parent96d4483df75458614339879e359b72169fa6b760
MINOR: tasks: Use a bitfield to track tasks activity per-thread

a bitfield has been added to know if there are runnable tasks for a thread. When
a task is woken up, the bits corresponding to its thread_mask are set. When all
tasks for a thread have been evaluated without any wakeup, the thread is removed
from active ones by unsetting its tid_bit from the bitfield.
include/proto/task.h
src/task.c