]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLENAUP: config: move CONFIG_HAP_LOCKLESS_POOLS out of config.h
authorWilly Tarreau <w@1wt.eu>
Sat, 9 May 2020 07:02:35 +0000 (09:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 9 May 2020 07:02:35 +0000 (09:02 +0200)
commit3bc4e8bfe6edc5ca8283f6b6fcc8d9b6b8a08944
tree81ea8f9bf9fe7c9216629df180a56a03ce5d8acc
parent755afc08d544a0e2506343fdec274b24fb0c1ad0
CLENAUP: config: move CONFIG_HAP_LOCKLESS_POOLS out of config.h

The setting of CONFIG_HAP_LOCKLESS_POOLS depending on threads and
compat was done in config.h for use only in memory.h and memory.c
where other settings are dealt with. Further, the default pool cache
size was set there from a fixed value instead of being set from
defaults.h

Let's move the decision to enable lockless pools via
CONFIG_HAP_LOCKLESS_POOLS to memory.h, and set the default pool
cache size in defaults.h like other default settings.

This was the next-to-last setting in config.h.
include/common/config.h
include/common/defaults.h
include/common/memory.h