using System;
namespace Swan.Threading {
///
/// Fast, atomic long combining interlocked to write value and volatile to read values.
///
public sealed class AtomicLong : AtomicTypeBase {
///
/// Initializes a new instance of the class.
///
/// if set to true [initial value].
public AtomicLong(Int64 initialValue = default) : base(initialValue) {
// placeholder
}
///
protected override Int64 FromLong(Int64 backingValue) => backingValue;
///
protected override Int64 ToLong(Int64 value) => value;
}
}