atomicOp

Performs the binary operation 'op' on val using 'mod' as the modifier.

pure nothrow @nogc @safe
TailShared!T
atomicOp
(
string op
T
V1
)
(
ref shared T val
,
V1 mod
)
if (
__traits(compiles, mixin ("*cast(T*)&val" ~ op ~ "mod"))
)
in (atomicValueIsProperlyAligned(val))

Parameters

val
Type: T

The target variable.

mod
Type: V1

The modifier to apply.

Return Value

Type: TailShared!T

The result of the operation.

Suggestion Box / Bug Report