The OpenD Programming Language

atomic_compare_exchange_strong_impl

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

Examples

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

Meta