MINOR: thread: make "ti" a const pointer and clean up thread_info a bit
authorWilly Tarreau <w@1wt.eu>
Fri, 1 Oct 2021 14:29:27 +0000 (16:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 15:22:26 +0000 (17:22 +0200)
commit6036342f58bb350e4d95cb63d1567439b71165b7
treea57943bb2df87e09c4ff88790226628c9bfbdab5
parentb4e34766a38a1ea1fb80164b3abe3a68d2e8efeb
MINOR: thread: make "ti" a const pointer and clean up thread_info a bit

We want to make sure that the current thread_info accessed via "ti" will
remain constant, so that we don't accidentally place new variable parts
there and so that the compiler knows that info retrieved from there is
not expected to have changed between two function calls.

Only a few init locations had to be adjusted to use the array and the
rest is unaffected.
include/haproxy/tinfo-t.h
include/haproxy/tinfo.h
src/thread.c