]> git.lttng.org Git - urcu.git/commit
Introduce _CMM_TOOLCHAIN_SUPPORT_C11_MM
authorOlivier Dion <odion@efficios.com>
Mon, 21 Oct 2024 17:31:28 +0000 (13:31 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 2 Dec 2024 18:17:57 +0000 (13:17 -0500)
commit89280d020bf064d1055c360fb9974f128051043f
tree4654c375c6f89c551fe698a5b9be24802d358ff1
parent438b2d8886b85dfd9ba2dd496479fdcc4f5ecac5
Introduce _CMM_TOOLCHAIN_SUPPORT_C11_MM

If the toolchain used supports the C11 memory model, define the private
_CMM_TOOLCHAIN_SUPPORT_C11_MM macro.

This is used to implement `uatomic_load()/uatomic_store' in term of
`__atomic' builtins instead of using volatile accesses, therefore
reducing possible redundant memory barriers for some memory orders.

Change-Id: I0df3c202daf74ac012338583b761de15687d25f3
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/compiler.h
include/urcu/uatomic.h
include/urcu/uatomic/generic.h
This page took 0.030447 seconds and 4 git commands to generate.