private static void VolatileRead()
        {
            LargeStruct value;

            for (var i = 0; i < 10000; i++)
            {
                VContainer.Read(out value);
            }
        }
Beispiel #2
0
 public static double VolatileRead(ref this double value) => Atomic.Read(ref value);
Beispiel #3
0
 public static IntPtr VolatileRead(ref this IntPtr value) => Atomic.Read(ref value);
Beispiel #4
0
 public static long VolatileRead(ref this long value) => Atomic.Read(ref value);
Beispiel #5
0
 public static int VolatileRead(ref this int value) => Atomic.Read(ref value);
Beispiel #6
0
 public static float VolatileRead(ref this float value) => Atomic.Read(ref value);
Beispiel #7
0
 public static E VolatileRead <E>(this ref E value)
     where E : struct, Enum
 => Atomic.Read(ref value);