]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: thread: use initcall instead of a constructor
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Apr 2022 17:23:17 +0000 (19:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Apr 2022 17:23:17 +0000 (19:23 +0200)
commit8ead1d084ad771da26135464bae70da34deb55fe
tree234a1c12e175dac9bd9adb402896c834d42a39c4
parent79367f9a8d777e1199b7f159527f376832917e28
BUILD: thread: use initcall instead of a constructor

The constructor present there could be replaced with an initcall.
This one is set at level STG_PREPARE because it also zeroes the
lock_stats, and it's a bit odd that it could possibly have been
scheduled to run after other constructors that might already
preset some of these locks by accident.
src/thread.c