MINOR: threads: Add macros to do atomic operation with no memory barrier.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 7 Mar 2019 17:55:31 +0000 (18:55 +0100)
committerOlivier Houchard <cognet@ci0.org>
Mon, 11 Mar 2019 16:02:37 +0000 (17:02 +0100)
commitd0c3b8894a7c625f810639d8dc0726dba097411e
tree3ce7069eeed123096a7537ee06923ccb282ab297
parent113537967c8680f94977473e18c9e14dc09c3356
MINOR: threads: Add macros to do atomic operation with no memory barrier.

Add variants of the HA_ATOMIC* macros, prefixed with a _, that do the
atomic operation with no barrier generated by the compiler. It is expected
the developer adds barriers manually if needed.
include/common/hathreads.h