]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: thread: add a lock level information in the thread_ctx
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Sep 2025 06:29:25 +0000 (08:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Sep 2025 14:32:34 +0000 (16:32 +0200)
commit4b23b2ed3288836f1ea254d7753ca95db521bc21
treee4d0175b05516afea4942d322ea972d290171c59
parent503084643f72357e585cc08266815d0bbe254a64
MINOR: thread: add a lock level information in the thread_ctx

The new lock_level field indicates the number of cumulated locks that
are held by the current thread. It's fed as soon as DEBUG_THREAD is at
least 1. In addition, thread_isolate() adds 128, so that it's even
possible to check for combinations of both. The value is also reported
in thread dumps (warnings and panics).
include/haproxy/thread.h
include/haproxy/tinfo-t.h
src/debug.c
src/thread.c