73 lines
4.8 KiB
C#
73 lines
4.8 KiB
C#
using System;
|
|
using System.Runtime.ConstrainedExecution;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading
|
|
{
|
|
/// <summary>Contains methods for performing volatile memory operations.</summary>
|
|
// Token: 0x02000351 RID: 849
|
|
[Token(Token = "0x2000351")]
|
|
public static class Volatile
|
|
{
|
|
/// <summary>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.</summary>
|
|
/// <param name="location">The field to read.</param>
|
|
/// <returns>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.</returns>
|
|
// 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);
|
|
}
|
|
|
|
/// <summary>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.</summary>
|
|
/// <param name="location">The field to read.</param>
|
|
/// <returns>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.</returns>
|
|
// 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;
|
|
}
|
|
|
|
/// <summary>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.</summary>
|
|
/// <param name="location">The field to read.</param>
|
|
/// <typeparam name="T">The type of field to read. This must be a reference type, not a value type.</typeparam>
|
|
/// <returns>The reference to <paramref name="T" /> 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.</returns>
|
|
// 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<T>(ref T location) where T : class
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>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.</summary>
|
|
/// <param name="location">The field where the value is written.</param>
|
|
/// <param name="value">The value to write. The value is written immediately so that it is visible to all processors in the computer.</param>
|
|
// 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)
|
|
{
|
|
}
|
|
|
|
/// <summary>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.</summary>
|
|
/// <param name="location">The field where the object reference is written.</param>
|
|
/// <param name="value">The object reference to write. The reference is written immediately so that it is visible to all processors in the computer.</param>
|
|
/// <typeparam name="T">The type of field to write. This must be a reference type, not a value type.</typeparam>
|
|
// 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<T>(ref T location, T value) where T : class
|
|
{
|
|
}
|
|
}
|
|
}
|