using System; using System.Runtime.ConstrainedExecution; using Cpp2IlInjected; namespace System.Threading { /// Contains methods for performing volatile memory operations. // Token: 0x02000351 RID: 849 [Token(Token = "0x2000351")] public static class Volatile { /// 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. /// The field to read. /// The value that was read. This value is the latest written by any processor in the computer, regardless of the number of processors or the state of processor cache. // Token: 0x06001E8C RID: 7820 RVA: 0x000137B8 File Offset: 0x000119B8 [Token(Token = "0x6001E8C")] [Address(RVA = "0x1DB7520", Offset = "0x1DB6320", VA = "0x181DB7520")] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] public static bool Read(ref bool location) { return default(bool); } /// 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. /// The field to read. /// The value that was read. This value is the latest written by any processor in the computer, regardless of the number of processors or the state of processor cache. // Token: 0x06001E8D RID: 7821 RVA: 0x000137D0 File Offset: 0x000119D0 [Token(Token = "0x6001E8D")] [Address(RVA = "0x1DB7540", Offset = "0x1DB6340", VA = "0x181DB7540")] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] public static int Read(ref int location) { return 0; } /// 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. /// The field to read. /// The type of field to read. This must be a reference type, not a value type. /// The reference to that was read. This reference is the latest written by any processor in the computer, regardless of the number of processors or the state of processor cache. // Token: 0x06001E8E RID: 7822 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001E8E")] [Address(RVA = "0x129C7C0", Offset = "0x129B5C0", VA = "0x18129C7C0")] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] public static T Read(ref T location) where T : class { return null; } /// 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. /// The field where the value is written. /// The value to write. The value is written immediately so that it is visible to all processors in the computer. // Token: 0x06001E8F RID: 7823 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001E8F")] [Address(RVA = "0x1DB7560", Offset = "0x1DB6360", VA = "0x181DB7560")] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] public static void Write(ref int location, int 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. /// The field where the object reference is written. /// The object reference to write. The reference is written immediately so that it is visible to all processors in the computer. /// The type of field to write. This must be a reference type, not a value type. // Token: 0x06001E90 RID: 7824 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001E90")] [Address(RVA = "0x16D4270", Offset = "0x16D3070", VA = "0x1816D4270")] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] public static void Write(ref T location, T value) where T : class { } } }