haproxy/include/common
Willy Tarreau 3f567e4949 REORG: include: split hathreads into haproxy/thread.h and haproxy/thread-t.h
This splits the hathreads.h file into types+macros and functions. Given
that most users of this file used to include it only to get the definition
of THREAD_LOCAL and MAXTHREADS, the bare minimum was placed into thread-t.h
(i.e. types and macros).

All the thread management was left to haproxy/thread.h. It's worth noting
the drop of the trailing "s" in the name, to remove the permanent confusion
that arises between this one and the system implementation (no "s") and the
makefile's option (no "s").

For consistency, src/hathreads.c was also renamed thread.c.

A number of files were updated to only include thread-t which is the one
they really needed.

Some future improvements are possible like replacing empty inlined
functions with macros for the thread-less case, as building at -O0 disables
inlining and causes these ones to be emitted. But this really is cosmetic.
2020-06-11 10:18:56 +02:00
..
buffer.h REORG: include: move istbuf.h to haproxy/ 2020-06-11 10:18:56 +02:00
cfgparse.h REORG: include: split mini-clist into haproxy/list and list-t.h 2020-06-11 10:18:56 +02:00
chunk.h REORG: include: split buf.h into haproxy/buf-t.h and haproxy/buf.h 2020-06-11 10:18:56 +02:00
fcgi.h REORG: include: split buf.h into haproxy/buf-t.h and haproxy/buf.h 2020-06-11 10:18:56 +02:00
h1.h REORG: include: move ist.h from common/ to import/ 2020-06-11 10:18:56 +02:00
h2.h REORG: include: move ist.h from common/ to import/ 2020-06-11 10:18:56 +02:00
hpack-dec.h REORG: include: update all files to use haproxy/api.h or api-t.h if needed 2020-06-11 10:18:42 +02:00
hpack-enc.h REORG: include: split buf.h into haproxy/buf-t.h and haproxy/buf.h 2020-06-11 10:18:56 +02:00
hpack-huff.h BUILD: use inttypes.h instead of stdint.h 2019-04-01 07:44:56 +02:00
hpack-tbl.h REORG: include: move ist.h from common/ to import/ 2020-06-11 10:18:56 +02:00
http-hdr.h REORG: include: move ist.h from common/ to import/ 2020-06-11 10:18:56 +02:00
http.h REORG: include: split buf.h into haproxy/buf-t.h and haproxy/buf.h 2020-06-11 10:18:56 +02:00
htx.h REORG: include: split buf.h into haproxy/buf-t.h and haproxy/buf.h 2020-06-11 10:18:56 +02:00
memory.h REORG: include: split hathreads into haproxy/thread.h and haproxy/thread-t.h 2020-06-11 10:18:56 +02:00
namespace.h REORG: ebtree: move the include files from ebtree to include/import/ 2020-06-11 09:31:11 +02:00
net_helper.h REORG: include: update all files to use haproxy/api.h or api-t.h if needed 2020-06-11 10:18:42 +02:00
regex.h REORG: include: split hathreads into haproxy/thread.h and haproxy/thread-t.h 2020-06-11 10:18:56 +02:00
standard.h REORG: include: move SWAP/MID_RANGE/MAX_RANGE from tools.h to standard.h 2020-06-11 10:18:56 +02:00
ticks.h REORG: include: update all files to use haproxy/api.h or api-t.h if needed 2020-06-11 10:18:42 +02:00
time.h REORG: include: split hathreads into haproxy/thread.h and haproxy/thread-t.h 2020-06-11 10:18:56 +02:00
uri_auth.h REORG: include: update all files to use haproxy/api.h or api-t.h if needed 2020-06-11 10:18:42 +02:00
xref.h CLEANUP: threads: remove a few needless includes of hathreads.h 2020-06-11 10:18:56 +02:00