]> git.kaiwu.me - haproxy.git/commit
REORG: include: move THREAD_LOCAL and __decl_thread() to compiler.h
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 06:33:02 +0000 (08:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:59 +0000 (10:18 +0200)
commit5b9cde4820c31c0019029019d51db3e7c429459c
treeef214dbf5d99b3a17f36efc19dd1c4a91be91f0b
parentca8b069aa7a015c59b6d6c48180e51b5893f778b
REORG: include: move THREAD_LOCAL and __decl_thread() to compiler.h

Since these are used as type attributes or conditional clauses, they
are used about everywhere and should not require a dependency on
thread.h. Moving them to compiler.h along with other similar statements
like ALIGN() etc looks more logical; this way they become part of the
base API. This allowed to remove thread-t.h from ~12 files, one was
found to only require thread-t and not thread and dict.c was found to
require thread.h.
15 files changed:
include/haproxy/compiler.h
include/haproxy/dict-t.h
include/haproxy/global.h
include/haproxy/log.h
include/haproxy/regex-t.h
include/haproxy/regex.h
include/haproxy/thread-t.h
include/haproxy/trace.h
src/dict.c
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/time.c