private static void VolatileRead() { LargeStruct value; for (var i = 0; i < 10000; i++) { VContainer.Read(out value); } }
public static double VolatileRead(ref this double value) => Atomic.Read(ref value);
public static IntPtr VolatileRead(ref this IntPtr value) => Atomic.Read(ref value);
public static long VolatileRead(ref this long value) => Atomic.Read(ref value);
public static int VolatileRead(ref this int value) => Atomic.Read(ref value);
public static float VolatileRead(ref this float value) => Atomic.Read(ref value);
public static E VolatileRead <E>(this ref E value) where E : struct, Enum => Atomic.Read(ref value);