mscorlib(4.0.0.0) API with additions
|
Contains methods for performing volatile memory operations. More...
Static Public Member Functions | |
static bool | Read (ref bool location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static sbyte | Read (ref sbyte location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static byte | Read (ref byte location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static short | Read (ref short location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static ushort | Read (ref ushort location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static int | Read (ref int location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static uint | Read (ref uint location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static long | Read (ref long location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static unsafe ulong | Read (ref ulong location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static IntPtr | Read (ref IntPtr location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static UIntPtr | Read (ref UIntPtr location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static float | Read (ref float location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static double | Read (ref double location) |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static T | Read< T > (ref T location) |
Reads the object reference from the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method. More... | |
static void | Write (ref bool location, bool value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref sbyte location, sbyte value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref byte location, byte value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref short location, short value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref ushort location, ushort value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref int location, int value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref uint location, uint value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref long location, long value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a memory operation appears before this method in the code, the processor cannot move it after this method. More... | |
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 barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref IntPtr location, IntPtr value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref UIntPtr location, UIntPtr value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref float location, float value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write (ref double location, double value) |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
static void | Write< T > (ref T location, T value) |
Writes the specified object reference to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method. More... | |
Contains methods for performing volatile memory operations.
Definition at line 8 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 15 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 28 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 40 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 52 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 65 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 77 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 90 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 102 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 114 of file Volatile.cs.
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 126 of file Volatile.cs.
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 138 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 150 of file Volatile.cs.
|
static |
Reads the value of the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
Definition at line 162 of file Volatile.cs.
|
static |
Reads the object reference from the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears after this method in the code, the processor cannot move it before this method.
location | The field to read. |
T | The type of field to read. This must be a reference type, not a value type. |
T | : | class |
Definition at line 174 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 186 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 198 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 209 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 220 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 232 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 243 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 255 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a memory operation appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 266 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 278 of file Volatile.cs.
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 290 of file Volatile.cs.
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 301 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 312 of file Volatile.cs.
|
static |
Writes the specified value to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the value is written. |
value | The value to write. The value is written immediately so that it is visible to all processors in the computer. |
Definition at line 323 of file Volatile.cs.
|
static |
Writes the specified object reference to the specified field. On systems that require it, inserts a memory barrier that prevents the processor from reordering memory operations as follows: If a read or write appears before this method in the code, the processor cannot move it after this method.
location | The field where the object reference is written. |
value | The object reference to write. The reference is written immediately so that it is visible to all processors in the computer. |
T | The type of field to write. This must be a reference type, not a value type. |
T | : | class |
Definition at line 335 of file Volatile.cs.