using System;
using System.Runtime.ConstrainedExecution;
using Cpp2IlInjected;
namespace System.Threading
{
/// Contains methods for performing volatile memory operations.
// Token: 0x0200036D RID: 877
[Token(Token = "0x200036D")]
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: 0x06002098 RID: 8344 RVA: 0x00015B88 File Offset: 0x00013D88
[Token(Token = "0x6002098")]
[Address(RVA = "0xF852E0", Offset = "0xF842E0", VA = "0x180F852E0")]
[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: 0x06002099 RID: 8345 RVA: 0x00015BA0 File Offset: 0x00013DA0
[Token(Token = "0x6002099")]
[Address(RVA = "0xF85300", Offset = "0xF84300", VA = "0x180F85300")]
[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: 0x0600209A RID: 8346 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600209A")]
[Address(RVA = "0x1E63A20", Offset = "0x1E62A20", VA = "0x181E63A20")]
[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: 0x0600209B RID: 8347 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600209B")]
[Address(RVA = "0xF85320", Offset = "0xF84320", VA = "0x180F85320")]
[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: 0x0600209C RID: 8348 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600209C")]
[Address(RVA = "0x1FDDC60", Offset = "0x1FDCC60", VA = "0x181FDDC60")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static void Write(ref T location, T value) where T : class
{
}
}
}