commit | 86abe44e42fba96e8a46651f1e64a2e8a6d9f514 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Nov 25 20:12:18 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Nov 26 19:50:32 2018 +0100 |
tree | d76bbb637e141ca344f20fbd7b0791e85fed738d | |
parent | 90fa97b65e155a04cd59bd12374e29357b9c8845 [diff] |
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.