]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: add a thread-local thread_info pointer "ti"
authorWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 16:57:53 +0000 (18:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 19:14:12 +0000 (21:14 +0200)
commit8323a375bc1e78b8078674b45b967687a7752005
treea524095b3fe84abb6a90045d9ec09860fe80a1c7
parent624dcbf41ec7aa4e6f39c906a4fc491f3d8d1a32
MINOR: threads: add a thread-local thread_info pointer "ti"

Since we're likely to access this thread_info struct more frequently in
the future, let's reserve the thread-local symbol to access it directly
and avoid always having to combine thread_info and tid. This pointer is
set when tid is set.
include/common/hathreads.h
src/haproxy.c
src/hathreads.c