Source/NFX/Collections/NamedInterlocked.cs
/// <summary>
/// Captures the current value of a named long value and atomically sets it to the passed value
/// </summary>
Captures the current value of a named long value and atomically sets it to the passed value
Captures the current value of a named long value and atomically sets it to the passed value
public long ExchangeLong(string name, long value)
      {
        var slot = getSlot(name);
        return Interlocked.Exchange(ref slot.Long, value);
      }
public long ExchangeLong ( string name , long value ) { var slot = getSlot ( name ) ; return Interlocked . Exchange ( ref slot . Long , value ) ; }
Captures the current value of a named long value and atomically sets it to the passed value
Captures the current value of a named long value and atomically sets it to the passed value
name
string
value
long