atomicStoreIf

Supported msync values: msync.raw, msync.ssb, msync.acq, msync.rel, msync.seq

  1. bool atomicStoreIf(T val, T newval, T equalTo)
    template atomicStoreIf(msync ms, T)
    version(TangoDoc)
    deprecated
    bool
    atomicStoreIf
    (
    ref T val
    ,,)
  2. template atomicStoreIf(msync ms = msync.seq, T)
  3. template atomicStoreIf(msync ms = msync.seq, T)
  4. template atomicStoreIf(msync ms = msync.seq, T)

Members

Functions

atomicStoreIf
deprecated bool atomicStoreIf(T val, T newval, T equalTo)

Stores 'newval' to the memory referenced by 'val' if val is equal to 'equalTo'. This operation is both lock-free and atomic.

Meta