]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: init: use self-initializing spinlocks and rwlocks
authorWilly Tarreau <w@1wt.eu>
Sun, 25 Nov 2018 19:12:18 +0000 (20:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 18:50:32 +0000 (19:50 +0100)
commit86abe44e42fba96e8a46651f1e64a2e8a6d9f514
treed76bbb637e141ca344f20fbd7b0791e85fed738d
parent90fa97b65e155a04cd59bd12374e29357b9c8845
MEDIUM: init: use self-initializing spinlocks and rwlocks

This patch replaces a number of __decl_hathread() followed by HA_SPIN_INIT
or HA_RWLOCK_INIT by the new __decl_spinlock() or __decl_rwlock() which
automatically registers the lock for initialization in during the STG_LOCK
init stage. A few static modifiers were lost in the process, but since they
were not essential at all it was not worth extending the API to provide such
a variant.
src/buffer.c
src/checks.c
src/compression.c
src/hlua.c
src/listener.c
src/pattern.c
src/pipe.c
src/ssl_sock.c
src/stream.c
src/task.c
src/vars.c