Source/NFX/Collections/NamedInterlocked.cs
/// <summary>
/// Adds slot snapshot from another source.
/// Pass exchange to flip the existing slots to the exchanged value
/// </summary>
Adds slot snapshot from another source.
Pass exchange to flip the existing slots to the exchanged value
Adds slot snapshot from another source . Pass exchange to flip the existing slots to the exchanged value
public void Add(NamedInterlocked source, long? exchangeSource = null)
      {
        if (source == null) return;
        var longs = source.SnapshotAllLongs(exchangeSource);
        foreach (var item in longs)
          AddLong(item.Key, item.Value);
      }
public void Add ( NamedInterlocked source , long ? exchangeSource = null ) { if ( source == null ) return ; var longs = source . SnapshotAllLongs ( exchangeSource ) ; foreach ( var item in longs ) AddLong ( item . Key , item . Value ) ; }
Adds slot snapshot from another source.
Adds slot snapshot from another source .
source
NamedInterlocked
exchangeSource
long?