summaryrefslogtreecommitdiff
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2020-05-28 15:29:19 +0200
committerWilly Tarreau <w@1wt.eu>2020-06-11 10:18:56 +0200
commit3f567e4949badb4d13e66f5688fc00fc10ab0a0a (patch)
tree39739a18a3907bd674e82e3a6142990b99dde9b1 /MAINTAINERS
parent5775d0964a0ac12b9305320d3a90d33c5dd4d7d6 (diff)
downloadhaproxy-3f567e4949badb4d13e66f5688fc00fc10ab0a0a.tar.gz
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.
Diffstat (limited to 'MAINTAINERS')
-rw-r--r--MAINTAINERS2
1 files changed, 1 insertions, 1 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index 95b017521..f17c6480a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -77,7 +77,7 @@ Files: src/flt_spoe.c, include/*/spoe.h, contrib/spoa_example, doc/SPOE.txt
Multi-threading
Maintainer: Christopher Faulet <cfaulet@haproxy.com>
Maintainer: Emeric Brun <ebrun@haproxy.com>
-Files: src/hathreads.c, include/*/hathreads.h
+Files: src/thread.c, include/*/thread.h
Note: every change around the locking or synchronization point will require
approval from one of these maintainers. Problems which only appear when
nbthread is greater than 1 and which disappear otherwise are also