The OpenD Programming Language

Atomic.fetchAnd

Atomically replaces the current value with the result of bitwise AND 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
fetchAnd
(
T val
)

Parameters

val T

The other argument of bitwise AND

Return Value

Type: T

The atomic value BEFORE the operation

Meta