The OpenD Programming Language

atomic_fetch_or_explicit_impl

pragma(inline, true) @trusted
A
atomic_fetch_or_explicit_impl
(
A
M
)
(
shared(A)* obj
,
M arg
,
memory_order order
)

Examples

shared(int) val = 5;
atomic_fetch_or_explicit_impl(&val, 3, memory_order.memory_order_seq_cst);
assert(atomic_load_impl(&val) == 7);

Meta