Revert "MINOR: threads: change lock_t to an unsigned int"
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Feb 2021 14:45:01 +0000 (15:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Feb 2021 09:06:45 +0000 (10:06 +0100)
commitb9ad30a8ad4f247ca03e6532428e77733128c954
treed5621a8a03b4fed05de11a49b72a8ec675003175
parent751153e0f119bec90455cda95166f1b29d8b0326
Revert "MINOR: threads: change lock_t to an unsigned int"

This reverts commit 8f1f177ed0bbdb6c10e61e83994df113452d434f.

Repeated tests have shown a small perforamnce degradation of ~1.8%
caused by this patch at high request rates on 16 threads. The exact
cause is not yet perfectly known but it probably stems in slower
accesses for non-64-bit aligned atomic accesses.
include/haproxy/thread-t.h