7 [__DynamicallyInvokable]
13 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
14 [__DynamicallyInvokable]
15 public static bool Read(ref
bool location)
17 bool result = location;
25 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
27 [__DynamicallyInvokable]
28 public static sbyte
Read(ref sbyte location)
30 sbyte result = location;
38 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
39 [__DynamicallyInvokable]
40 public static byte Read(ref
byte location)
42 byte result = location;
50 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
51 [__DynamicallyInvokable]
52 public static short Read(ref
short location)
54 short result = location;
62 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
64 [__DynamicallyInvokable]
65 public static ushort
Read(ref ushort location)
67 ushort result = location;
75 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
76 [__DynamicallyInvokable]
77 public static int Read(ref
int location)
79 int result = location;
87 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
89 [__DynamicallyInvokable]
90 public static uint
Read(ref uint location)
92 uint result = location;
100 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
101 [__DynamicallyInvokable]
102 public static long Read(ref
long location)
110 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
111 [CLSCompliant(
false)]
112 [SecuritySafeCritical]
113 [__DynamicallyInvokable]
114 public unsafe
static ulong
Read(ref ulong location)
116 fixed (ulong* ptr = &location)
125 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
136 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
137 [CLSCompliant(
false)]
148 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
149 [__DynamicallyInvokable]
150 public static float Read(ref
float location)
152 float result = location;
160 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
161 [__DynamicallyInvokable]
162 public static double Read(ref
double location)
171 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
172 [SecuritySafeCritical]
173 [__DynamicallyInvokable]
184 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
185 [__DynamicallyInvokable]
186 public static void Write(ref
bool location,
bool value)
195 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
196 [CLSCompliant(
false)]
197 [__DynamicallyInvokable]
198 public static void Write(ref sbyte location, sbyte value)
207 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
208 [__DynamicallyInvokable]
209 public static void Write(ref
byte location,
byte value)
218 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
219 [__DynamicallyInvokable]
220 public static void Write(ref
short location,
short value)
229 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
230 [CLSCompliant(
false)]
231 [__DynamicallyInvokable]
232 public static void Write(ref ushort location, ushort value)
241 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
242 [__DynamicallyInvokable]
243 public static void Write(ref
int location,
int value)
252 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
253 [CLSCompliant(
false)]
254 [__DynamicallyInvokable]
255 public static void Write(ref uint location, uint value)
264 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
265 [__DynamicallyInvokable]
266 public static void Write(ref
long location,
long value)
274 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
275 [CLSCompliant(
false)]
276 [SecuritySafeCritical]
277 [__DynamicallyInvokable]
278 public unsafe
static void Write(ref ulong location, ulong value)
280 fixed (ulong* ptr = &location)
289 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
299 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
300 [CLSCompliant(
false)]
310 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
311 [__DynamicallyInvokable]
312 public static void Write(ref
float location,
float value)
321 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
322 [__DynamicallyInvokable]
323 public static void Write(ref
double location,
double value)
332 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
333 [SecuritySafeCritical]
334 [__DynamicallyInvokable]
335 public static void Write<T>(ref T location, T value) where
T :
class
A platform-specific type that is used to represent a pointer or a handle.
static void Write(ref long location, long value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static void Write(ref bool location, bool value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static ushort Read(ref ushort location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static void MemoryBarrier()
Synchronizes memory access as follows: The processor executing the current thread cannot reorder inst...
static unsafe void Write(ref ulong location, ulong value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static void Write(ref ushort location, ushort value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static void Write< T >(ref T location, T value)
Writes the specified object reference to the specified field. On systems that require it,...
static void Write(ref UIntPtr location, UIntPtr value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static IntPtr Read(ref IntPtr location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static int Read(ref int location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static int Exchange(ref int location1, int value)
Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operat...
Cer
Specifies a method's behavior when called within a constrained execution region.
static unsafe ulong Read(ref ulong location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static int CompareExchange(ref int location1, int value, int comparand)
Compares two 32-bit signed integers for equality and, if they are equal, replaces the first value.
A platform-specific type that is used to represent a pointer or a handle.
Contains methods for performing volatile memory operations.
static void Write(ref float location, float value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static UIntPtr Read(ref UIntPtr location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static bool Read(ref bool location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static double Read(ref double location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static sbyte Read(ref sbyte location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static void Write(ref int location, int value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static void Write(ref byte location, byte value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static short Read(ref short location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static void Write(ref sbyte location, sbyte value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static uint Read(ref uint location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static void Write(ref uint location, uint value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static byte Read(ref byte location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static void Write(ref IntPtr location, IntPtr value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
Consistency
Specifies a reliability contract.
static T Read< T >(ref T location)
Reads the object reference from the specified field. On systems that require it, inserts a memory bar...
static float Read(ref float location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
Provides atomic operations for variables that are shared by multiple threads.
static void Write(ref short location, short value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
static long Read(ref long location)
Reads the value of the specified field. On systems that require it, inserts a memory barrier that pre...
static void Write(ref double location, double value)
Writes the specified value to the specified field. On systems that require it, inserts a memory barri...
Creates and controls a thread, sets its priority, and gets its status.