The OpenD Programming Language

Atomic.fetchOr

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

Parameters

val T

The other argument of bitwise OR

Return Value

Type: T

The atomic value BEFORE the operation

Meta