MEDIUM: threads: Use __ATOMIC_SEQ_CST when using the newer atomic API.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 7 Mar 2019 17:48:22 +0000 (18:48 +0100)
committerOlivier Houchard <cognet@ci0.org>
Mon, 11 Mar 2019 16:02:37 +0000 (17:02 +0100)
commit113537967c8680f94977473e18c9e14dc09c3356
tree6955ec7e2a3eac72d88c96bf580c927d443899e4
parent9abcf6ef9a56cf143b93f57e0f00503b0c8b3d95
MEDIUM: threads: Use __ATOMIC_SEQ_CST when using the newer atomic API.

When using the new __atomic* API, ask the compiler to generate barriers.
A variant of those functions that don't generate barriers will be added later.
Before that, using HA_ATOMIC* would not generate any barrier, and some parts
of the code should be reviewed and missing barriers should be added.

This should probably be backported to 1.8 and 1.9.
include/common/hathreads.h