commit | a8ae77da616cf8f20da72f5c69b969f7b9777ee6 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Nov 25 19:28:23 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Nov 26 19:50:32 2018 +0100 |
tree | 72f5fd9a0413e82607666482b950f65a150008a3 | |
parent | 0108d90c6cda977cce89125f75ff277bc1320a6a [diff] |
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.