]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: task: use t->tid instead of ffsl(t->thread_mask) to take the thread ID
authorWilly Tarreau <w@1wt.eu>
Wed, 15 Jun 2022 12:31:38 +0000 (14:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:15:14 +0000 (19:15 +0200)
commit29ffe267337b2a1818a714decd9da800c12823dc
treebeb63285652bd4e3aa740573e06a06b4417e08a4
parent5b8e0547320d3255d0d7366c57ec777e9bc2d1a8
MAJOR: task: use t->tid instead of ffsl(t->thread_mask) to take the thread ID

At several places we need to figure the ID of the first thread allowed
to run a task. Till now this was performed using my_ffsl(t->thread_mask)
but since we now have the thread ID stored into the task, let's use it
instead. This is tagged major because it starts to assume that tid<0 is
strictly equivalent to atleast2(thread_mask), and that as such, among
the allowed threads are the current one.
include/haproxy/task.h
src/peers.c
src/task.c