Atomic.storeIf

///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////

template storeIf(msync ms = msync.seq)
bool
storeIf

Members

Functions

storeIf
bool storeIf(T newval, T equalTo)

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

Meta