commit | 9abcf6ef9a56cf143b93f57e0f00503b0c8b3d95 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Thu Mar 07 18:45:00 2019 +0100 |
committer | Olivier Houchard <cognet@ci0.org> | Mon Mar 11 17:02:37 2019 +0100 |
tree | a14c4a255a147b48825d0fa29519d9cb7b91869a | |
parent | a51885621d5bf8fa63a82e8beb8438841098251f [diff] |
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.