The OpenD Programming Language

atomic_exchange_impl

pragma(inline, true) @trusted
A
atomic_exchange_impl
(
A
C
)
(
shared(A)* obj
,)

Examples

shared(int) obj = 3;
assert(atomic_exchange_impl(&obj, 2) == 3);

Meta