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