The OpenD Programming Language

Atomic.fetchXor

Atomically replaces the current value with the result of bitwise XOR of the the atomic value and val. The operation is read-modify-write operation. Memory is affected according to the value of order.

struct Atomic(T)
pure nothrow @nogc
T
fetchXor
(
T val
)

Parameters

val T

The other argument of bitwise XOR

Return Value

Type: T

The atomic value BEFORE the operation

Meta