The OpenD Programming Language

atomicFetchXor

Atomically performs and XOR operation between mod and the value referenced by val and returns the value val held previously. This operation is both lock-free and atomic.

  1. T atomicFetchXor(T val, T mod)
    pragma(inline, true) pure nothrow @nogc @trusted
    T
    atomicFetchXor
    (
    ref return scope T val
    ,
    T mod
    )
    if (
    (
    __traits(isIntegral, T) ||
    is(T == U*,
    U
    )
    )
    &&
    !is(T == shared)
    )
  2. T atomicFetchXor(T val, T mod)

Parameters

val T

Reference to the value to modify.

mod T

The value to perform and operation.

Return Value

Type: T

The value held previously by val.

Meta