Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

AtomicCompareExchange64

function AtomicCompareExchange64(var aTarget: Int64; aValue, aComparand: Int64): Int64; inline;
Store aValue only when aTarget equals aComparand. Return aTarget's previous value whether the exchange succeeds or fails.