]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sched: add a new function is_sched_alive() to report scheduler's health
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2025 13:24:08 +0000 (15:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2025 14:25:47 +0000 (16:25 +0200)
commit36ec70c526797267f337822468810225265fb44a
treea0cdd522f9336cfff59ba144629938dd85fc3b81
parent874ba2afed327c61345edcb1721fbe326fef67ce
MINOR: sched: add a new function is_sched_alive() to report scheduler's health

This verifies that the scheduler is still ticking without having to
access the activity[] array nor keeping local copies of the ctxsw
counter. It just tests and sets a flag that is reset after each
return from a ->process() function.
include/haproxy/task.h
src/task.c