]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: thread: provide a set of lock initialisers
authorWilly Tarreau <w@1wt.eu>
Sun, 25 Nov 2018 18:28:23 +0000 (19:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 18:50:32 +0000 (19:50 +0100)
commita8ae77da616cf8f20da72f5c69b969f7b9777ee6
tree72f5fd9a0413e82607666482b950f65a150008a3
parent0108d90c6cda977cce89125f75ff277bc1320a6a
MINOR: thread: provide a set of lock initialisers

This patch adds ha_spin_init() and ha_rwlock_init() which are used as
a callback to initialise locks at boot time. They perform exactly the
same as HA_SPIN_INIT() or HA_RWLOCK_INIT() but from within a real
function.
include/common/hathreads.h
src/hathreads.c