The OpenD Programming Language

atomic_fetch_xor_impl

pragma(inline, true) @trusted
A
atomic_fetch_xor_impl
(
A
M
)
(
shared(A)* obj
,
M arg
)

Examples

shared(int) val = 5;
atomic_fetch_xor_impl(&val, 3);
assert(atomic_load_impl(&val) == 6);

Meta