Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x0200036D RID: 877
[Token(Token = "0x200036D")]
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: 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);
}
/// <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: 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;
}
/// <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: 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<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: 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)
{
}
/// <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: 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<T>(ref T location, T value) where T : class
{
}
}
}