storeIf.storeIf

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

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

Parameters

newval T

The value to store.

equalTo T

The comparison value.

Return Value

Type: bool

true if the store occurred, false if not.

Meta