REORG: includes: create tinfo.h for the thread_info struct
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Jun 2020 07:57:23 +0000 (09:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jun 2020 07:57:23 +0000 (09:57 +0200)
commite4d1505c83eebee9768cb16fdf30fff115ad8df0
treeec9c98ace6318cf9456f59df3b017d9f9e58e743
parent739879a23be7d63155bba3198fed9dc6628f6647
REORG: includes: create tinfo.h for the thread_info struct

The thread_info struct is convenient to store various per-thread info
without having to resort to a painful thread_local storage which is
slow and painful to initialize.

The problem is, by having this one in thread.h it's very difficult to
add more entries there because everyone already includes thread.h so
conversely thread.h cannot reference certain types.

There's no point in having this there, instead let's create a new pair
of files, tinfo{,-t}.h, which declare the structure. This way it will
become possible to extend them with other includes and have certain
files store their own types there.
include/haproxy/thread-t.h
include/haproxy/thread.h
include/haproxy/tinfo-t.h [new file with mode: 0644]
include/haproxy/tinfo.h [new file with mode: 0644]