Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Threading/Interlocked.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

300 lines
18 KiB
C#

using System;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Threading
{
/// <summary>Provides atomic operations for variables that are shared by multiple threads.</summary>
// Token: 0x02000361 RID: 865
[Token(Token = "0x2000361")]
public static class Interlocked
{
/// <summary>Compares two 32-bit signed integers for equality and, if they are equal, replaces the first value.</summary>
/// <param name="location1">The destination, whose value is compared with <paramref name="comparand" /> and possibly replaced.</param>
/// <param name="value">The value that replaces the destination value if the comparison results in equality.</param>
/// <param name="comparand">The value that is compared to the value at <paramref name="location1" />.</param>
/// <returns>The original value in <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x0600204C RID: 8268 RVA: 0x00015858 File Offset: 0x00013A58
[Token(Token = "0x600204C")]
[Address(RVA = "0xF2CD40", Offset = "0xF2BD40", VA = "0x180F2CD40")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static int CompareExchange(ref int location1, int value, int comparand)
{
return 0;
}
// Token: 0x0600204D RID: 8269 RVA: 0x00015870 File Offset: 0x00013A70
[Token(Token = "0x600204D")]
[Address(RVA = "0xF2CD30", Offset = "0xF2BD30", VA = "0x180F2CD30")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
internal static int CompareExchange(ref int location1, int value, int comparand, ref bool succeeded)
{
return 0;
}
/// <summary>Compares two objects for reference equality and, if they are equal, replaces the first object.</summary>
/// <param name="location1">The destination object that is compared by reference with <paramref name="comparand" /> and possibly replaced.</param>
/// <param name="value">The object that replaces the destination object if the reference comparison results in equality.</param>
/// <param name="comparand">The object that is compared by reference to the object at <paramref name="location1" />.</param>
/// <returns>The original value in <paramref name="location1" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x0600204E RID: 8270 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600204E")]
[Address(RVA = "0xF2CD00", Offset = "0xF2BD00", VA = "0x180F2CD00")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static object CompareExchange(ref object location1, object value, object comparand)
{
return null;
}
/// <summary>Compares two single-precision floating point numbers for equality and, if they are equal, replaces the first value.</summary>
/// <param name="location1">The destination, whose value is compared with <paramref name="comparand" /> and possibly replaced.</param>
/// <param name="value">The value that replaces the destination value if the comparison results in equality.</param>
/// <param name="comparand">The value that is compared to the value at <paramref name="location1" />.</param>
/// <returns>The original value in <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x0600204F RID: 8271 RVA: 0x00015888 File Offset: 0x00013A88
[Token(Token = "0x600204F")]
[Address(RVA = "0xF2CD10", Offset = "0xF2BD10", VA = "0x180F2CD10")]
public static float CompareExchange(ref float location1, float value, float comparand)
{
return 0f;
}
/// <summary>Decrements a specified variable and stores the result, as an atomic operation.</summary>
/// <param name="location">The variable whose value is to be decremented.</param>
/// <returns>The decremented value.</returns>
/// <exception cref="T:System.ArgumentNullException">The address of <paramref name="location" /> is a null pointer.</exception>
// Token: 0x06002050 RID: 8272 RVA: 0x000158A0 File Offset: 0x00013AA0
[Token(Token = "0x6002050")]
[Address(RVA = "0xF2CD50", Offset = "0xF2BD50", VA = "0x180F2CD50")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static int Decrement(ref int location)
{
return 0;
}
/// <summary>Increments a specified variable and stores the result, as an atomic operation.</summary>
/// <param name="location">The variable whose value is to be incremented.</param>
/// <returns>The incremented value.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location" /> is a null pointer.</exception>
// Token: 0x06002051 RID: 8273 RVA: 0x000158B8 File Offset: 0x00013AB8
[Token(Token = "0x6002051")]
[Address(RVA = "0xF2CDA0", Offset = "0xF2BDA0", VA = "0x180F2CDA0")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static int Increment(ref int location)
{
return 0;
}
/// <summary>Increments a specified variable and stores the result, as an atomic operation.</summary>
/// <param name="location">The variable whose value is to be incremented.</param>
/// <returns>The incremented value.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location" /> is a null pointer.</exception>
// Token: 0x06002052 RID: 8274 RVA: 0x000158D0 File Offset: 0x00013AD0
[Token(Token = "0x6002052")]
[Address(RVA = "0xF2CDB0", Offset = "0xF2BDB0", VA = "0x180F2CDB0")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static long Increment(ref long location)
{
return 0L;
}
/// <summary>Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation.</summary>
/// <param name="location1">The variable to set to the specified value.</param>
/// <param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
/// <returns>The original value of <paramref name="location1" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x06002053 RID: 8275 RVA: 0x000158E8 File Offset: 0x00013AE8
[Token(Token = "0x6002053")]
[Address(RVA = "0xF2CD90", Offset = "0xF2BD90", VA = "0x180F2CD90")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static int Exchange(ref int location1, int value)
{
return 0;
}
/// <summary>Sets an object to a specified value and returns a reference to the original object, as an atomic operation.</summary>
/// <param name="location1">The variable to set to the specified value.</param>
/// <param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
/// <returns>The original value of <paramref name="location1" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x06002054 RID: 8276 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002054")]
[Address(RVA = "0xF2CD60", Offset = "0xF2BD60", VA = "0x180F2CD60")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static object Exchange(ref object location1, object value)
{
return null;
}
/// <summary>Sets a single-precision floating point number to a specified value and returns the original value, as an atomic operation.</summary>
/// <param name="location1">The variable to set to the specified value.</param>
/// <param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
/// <returns>The original value of <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x06002055 RID: 8277 RVA: 0x00015900 File Offset: 0x00013B00
[Token(Token = "0x6002055")]
[Address(RVA = "0xF2CD70", Offset = "0xF2BD70", VA = "0x180F2CD70")]
public static float Exchange(ref float location1, float value)
{
return 0f;
}
/// <summary>Compares two 64-bit signed integers for equality and, if they are equal, replaces the first value.</summary>
/// <param name="location1">The destination, whose value is compared with <paramref name="comparand" /> and possibly replaced.</param>
/// <param name="value">The value that replaces the destination value if the comparison results in equality.</param>
/// <param name="comparand">The value that is compared to the value at <paramref name="location1" />.</param>
/// <returns>The original value in <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x06002056 RID: 8278 RVA: 0x00015918 File Offset: 0x00013B18
[Token(Token = "0x6002056")]
[Address(RVA = "0xF2CD00", Offset = "0xF2BD00", VA = "0x180F2CD00")]
public static long CompareExchange(ref long location1, long value, long comparand)
{
return 0L;
}
/// <summary>Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one.</summary>
/// <param name="location1">The destination <see cref="T:System.IntPtr" />, whose value is compared with the value of <paramref name="comparand" /> and possibly replaced by <paramref name="value" />.</param>
/// <param name="value">The <see cref="T:System.IntPtr" /> that replaces the destination value if the comparison results in equality.</param>
/// <param name="comparand">The <see cref="T:System.IntPtr" /> that is compared to the value at <paramref name="location1" />.</param>
/// <returns>The original value in <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x06002057 RID: 8279 RVA: 0x00015930 File Offset: 0x00013B30
[Token(Token = "0x6002057")]
[Address(RVA = "0xF2CD00", Offset = "0xF2BD00", VA = "0x180F2CD00")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static IntPtr CompareExchange(ref IntPtr location1, IntPtr value, IntPtr comparand)
{
return 0;
}
/// <summary>Compares two double-precision floating point numbers for equality and, if they are equal, replaces the first value.</summary>
/// <param name="location1">The destination, whose value is compared with <paramref name="comparand" /> and possibly replaced.</param>
/// <param name="value">The value that replaces the destination value if the comparison results in equality.</param>
/// <param name="comparand">The value that is compared to the value at <paramref name="location1" />.</param>
/// <returns>The original value in <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x06002058 RID: 8280 RVA: 0x00015948 File Offset: 0x00013B48
[Token(Token = "0x6002058")]
[Address(RVA = "0xF2CD20", Offset = "0xF2BD20", VA = "0x180F2CD20")]
public static double CompareExchange(ref double location1, double value, double comparand)
{
return 0.0;
}
/// <summary>Compares two instances of the specified reference type <paramref name="T" /> for reference equality and, if they are equal, replaces the first one.</summary>
/// <param name="location1">The destination, whose value is compared by reference with <paramref name="comparand" /> and possibly replaced. This is a reference parameter (<see langword="ref" /> in C#, <see langword="ByRef" /> in Visual Basic).</param>
/// <param name="value">The value that replaces the destination value if the comparison by reference results in equality.</param>
/// <param name="comparand">The value that is compared by reference to the value at <paramref name="location1" />.</param>
/// <typeparam name="T">The type to be used for <paramref name="location1" />, <paramref name="value" />, and <paramref name="comparand" />. This type must be a reference type.</typeparam>
/// <returns>The original value in <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x06002059 RID: 8281 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002059")]
[ComVisible(false)]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static T CompareExchange<T>(ref T location1, T value, T comparand) where T : class
{
return null;
}
/// <summary>Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.</summary>
/// <param name="location1">The variable to set to the specified value.</param>
/// <param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
/// <returns>The original value of <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x0600205A RID: 8282 RVA: 0x00015960 File Offset: 0x00013B60
[Token(Token = "0x600205A")]
[Address(RVA = "0xF2CD60", Offset = "0xF2BD60", VA = "0x180F2CD60")]
public static long Exchange(ref long location1, long value)
{
return 0L;
}
/// <summary>Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.</summary>
/// <param name="location1">The variable to set to the specified value.</param>
/// <param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
/// <returns>The original value of <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x0600205B RID: 8283 RVA: 0x00015978 File Offset: 0x00013B78
[Token(Token = "0x600205B")]
[Address(RVA = "0xF2CD60", Offset = "0xF2BD60", VA = "0x180F2CD60")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static IntPtr Exchange(ref IntPtr location1, IntPtr value)
{
return 0;
}
/// <summary>Sets a double-precision floating point number to a specified value and returns the original value, as an atomic operation.</summary>
/// <param name="location1">The variable to set to the specified value.</param>
/// <param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
/// <returns>The original value of <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x0600205C RID: 8284 RVA: 0x00015990 File Offset: 0x00013B90
[Token(Token = "0x600205C")]
[Address(RVA = "0xF2CD80", Offset = "0xF2BD80", VA = "0x180F2CD80")]
public static double Exchange(ref double location1, double value)
{
return 0.0;
}
/// <summary>Sets a variable of the specified type <paramref name="T" /> to a specified value and returns the original value, as an atomic operation.</summary>
/// <param name="location1">The variable to set to the specified value. This is a reference parameter (<see langword="ref" /> in C#, <see langword="ByRef" /> in Visual Basic).</param>
/// <param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
/// <typeparam name="T">The type to be used for <paramref name="location1" /> and <paramref name="value" />. This type must be a reference type.</typeparam>
/// <returns>The original value of <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x0600205D RID: 8285 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600205D")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
[ComVisible(false)]
public static T Exchange<T>(ref T location1, T value) where T : class
{
return null;
}
/// <summary>Returns a 64-bit value, loaded as an atomic operation.</summary>
/// <param name="location">The 64-bit value to be loaded.</param>
/// <returns>The loaded value.</returns>
// Token: 0x0600205E RID: 8286 RVA: 0x000159A8 File Offset: 0x00013BA8
[Token(Token = "0x600205E")]
[Address(RVA = "0xF2CDC0", Offset = "0xF2BDC0", VA = "0x180F2CDC0")]
public static long Read(ref long location)
{
return 0L;
}
/// <summary>Adds two 32-bit integers and replaces the first integer with the sum, as an atomic operation.</summary>
/// <param name="location1">A variable containing the first value to be added. The sum of the two values is stored in <paramref name="location1" />.</param>
/// <param name="value">The value to be added to the integer at <paramref name="location1" />.</param>
/// <returns>The new value stored at <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x0600205F RID: 8287 RVA: 0x000159C0 File Offset: 0x00013BC0
[Token(Token = "0x600205F")]
[Address(RVA = "0xF2CCF0", Offset = "0xF2BCF0", VA = "0x180F2CCF0")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static int Add(ref int location1, int value)
{
return 0;
}
/// <summary>Adds two 64-bit integers and replaces the first integer with the sum, as an atomic operation.</summary>
/// <param name="location1">A variable containing the first value to be added. The sum of the two values is stored in <paramref name="location1" />.</param>
/// <param name="value">The value to be added to the integer at <paramref name="location1" />.</param>
/// <returns>The new value stored at <paramref name="location1" />.</returns>
/// <exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a null pointer.</exception>
// Token: 0x06002060 RID: 8288 RVA: 0x000159D8 File Offset: 0x00013BD8
[Token(Token = "0x6002060")]
[Address(RVA = "0xF2CCE0", Offset = "0xF2BCE0", VA = "0x180F2CCE0")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static long Add(ref long location1, long value)
{
return 0L;
}
}
}