]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: init/threads: make the global threads an array of structs
authorWilly Tarreau <w@1wt.eu>
Fri, 3 May 2019 08:16:39 +0000 (10:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 09:37:57 +0000 (11:37 +0200)
commit522cfbc1ea86b1baf54856ba8908eb313a162cbe
tree68c88798f1ce7e80a05b09fc9b1213048786cc10
parentb49a58dda27fe4b0b8943755e5c359b7b1739cc3
MINOR: init/threads: make the global threads an array of structs

This way we'll be able to store more per-thread information than just
the pthread pointer. The storage became an array of struct instead of
an allocated array since it's very small (typically 512 bytes) and not
worth the hassle of dealing with memory allocation on this. The array
was also renamed thread_info to make its intended usage more explicit.
include/types/global.h
src/debug.c
src/haproxy.c