]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: Implement __ha_barrier_atomic*.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 7 Mar 2019 17:45:00 +0000 (18:45 +0100)
committerOlivier Houchard <cognet@ci0.org>
Mon, 11 Mar 2019 16:02:37 +0000 (17:02 +0100)
commit9abcf6ef9a56cf143b93f57e0f00503b0c8b3d95
treea14c4a255a147b48825d0fa29519d9cb7b91869a
parenta51885621d5bf8fa63a82e8beb8438841098251f
MINOR: threads: Implement __ha_barrier_atomic*.

Implement __ha_barrier functions to be used when trying to protect data
modified by atomic operations (except when using HA_ATOMIC_STORE).
On intel, atomic operations either use the LOCK prefix and xchg, and both
atc as full barrier, so there's no need to add an extra barrier.
include/common/hathreads.h