mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-11 03:42:44 +02:00
The spin locks used to rely on W locks, which involve a loop waiting for readers to leave, and this doesn't happen here. It's more efficient to use S locks instead, which are also mutually exclusive and do not have this loop. This saves one test per spinlock and a few tens of bytes allowing certain functions to be inlined.