using System;
namespace Swan.Threading {
///
/// Defines an atomic DateTime.
///
public sealed class AtomicDateTime : AtomicTypeBase {
///
/// Initializes a new instance of the class.
///
/// The initial value.
public AtomicDateTime(DateTime initialValue) : base(initialValue.Ticks) {
// placeholder
}
///
protected override DateTime FromLong(Int64 backingValue) => new DateTime(backingValue);
///
protected override Int64 ToLong(DateTime value) => value.Ticks;
}
}