public void CopyCheckNull(ThreadSafeTimeStamp source) { if (source == null) return; var sourceStamp = Interlocked.CompareExchange(ref source.lastHit, 0, 0); Interlocked.Exchange(ref lastHit, sourceStamp); }
public void Copy(ThreadSafeTimeStamp source) { var sourceStamp = Interlocked.CompareExchange(ref source.lastHit, 0, 0); Interlocked.Exchange(ref lastHit, sourceStamp); }