]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sched: let's permit to share the local ctx between threads
authorWilly Tarreau <w@1wt.eu>
Tue, 30 Sep 2025 16:56:41 +0000 (18:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Oct 2025 08:18:53 +0000 (10:18 +0200)
commit7c7e17a6057652d6702c114ab6c4ba8cd301d54b
tree54b67384201da4231b5688ad59ce8ba59cf39d1f
parent21ae35dd299b2b09a8ed5cb75a61fe3e2e89b013
MINOR: sched: let's permit to share the local ctx between threads

The watchdog timer has to go through complex operations due to not being
able to check if another thread's scheduler is still ticking. This is
simply because the scheduler status is marked as thread-local while it
could in fact also be an array. Let's do that (and align the array to
avoid false sharing) so that it's now possible to check any scheduler's
status.
src/task.c