oh dear
This commit is contained in:
@@ -0,0 +1,299 @@
|
||||
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: 0x02000347 RID: 839
|
||||
[Token(Token = "0x2000347")]
|
||||
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: 0x06001E4A RID: 7754 RVA: 0x000134B8 File Offset: 0x000116B8
|
||||
[Token(Token = "0x6001E4A")]
|
||||
[Address(RVA = "0x2921E50", Offset = "0x2920C50", VA = "0x182921E50")]
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
|
||||
public static int CompareExchange(ref int location1, int value, int comparand)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06001E4B RID: 7755 RVA: 0x000134D0 File Offset: 0x000116D0
|
||||
[Token(Token = "0x6001E4B")]
|
||||
[Address(RVA = "0x2921E40", Offset = "0x2920C40", VA = "0x182921E40")]
|
||||
[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: 0x06001E4C RID: 7756 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6001E4C")]
|
||||
[Address(RVA = "0x2921E10", Offset = "0x2920C10", VA = "0x182921E10")]
|
||||
[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: 0x06001E4D RID: 7757 RVA: 0x000134E8 File Offset: 0x000116E8
|
||||
[Token(Token = "0x6001E4D")]
|
||||
[Address(RVA = "0x2921E20", Offset = "0x2920C20", VA = "0x182921E20")]
|
||||
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: 0x06001E4E RID: 7758 RVA: 0x00013500 File Offset: 0x00011700
|
||||
[Token(Token = "0x6001E4E")]
|
||||
[Address(RVA = "0x2921E60", Offset = "0x2920C60", VA = "0x182921E60")]
|
||||
[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: 0x06001E4F RID: 7759 RVA: 0x00013518 File Offset: 0x00011718
|
||||
[Token(Token = "0x6001E4F")]
|
||||
[Address(RVA = "0x2921EB0", Offset = "0x2920CB0", VA = "0x182921EB0")]
|
||||
[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: 0x06001E50 RID: 7760 RVA: 0x00013530 File Offset: 0x00011730
|
||||
[Token(Token = "0x6001E50")]
|
||||
[Address(RVA = "0x2921EC0", Offset = "0x2920CC0", VA = "0x182921EC0")]
|
||||
[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: 0x06001E51 RID: 7761 RVA: 0x00013548 File Offset: 0x00011748
|
||||
[Token(Token = "0x6001E51")]
|
||||
[Address(RVA = "0x2921EA0", Offset = "0x2920CA0", VA = "0x182921EA0")]
|
||||
[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: 0x06001E52 RID: 7762 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6001E52")]
|
||||
[Address(RVA = "0x2921E70", Offset = "0x2920C70", VA = "0x182921E70")]
|
||||
[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: 0x06001E53 RID: 7763 RVA: 0x00013560 File Offset: 0x00011760
|
||||
[Token(Token = "0x6001E53")]
|
||||
[Address(RVA = "0x2921E80", Offset = "0x2920C80", VA = "0x182921E80")]
|
||||
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: 0x06001E54 RID: 7764 RVA: 0x00013578 File Offset: 0x00011778
|
||||
[Token(Token = "0x6001E54")]
|
||||
[Address(RVA = "0x2921E10", Offset = "0x2920C10", VA = "0x182921E10")]
|
||||
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: 0x06001E55 RID: 7765 RVA: 0x00013590 File Offset: 0x00011790
|
||||
[Token(Token = "0x6001E55")]
|
||||
[Address(RVA = "0x2921E10", Offset = "0x2920C10", VA = "0x182921E10")]
|
||||
[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: 0x06001E56 RID: 7766 RVA: 0x000135A8 File Offset: 0x000117A8
|
||||
[Token(Token = "0x6001E56")]
|
||||
[Address(RVA = "0x2921E30", Offset = "0x2920C30", VA = "0x182921E30")]
|
||||
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: 0x06001E57 RID: 7767 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6001E57")]
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
|
||||
[ComVisible(false)]
|
||||
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: 0x06001E58 RID: 7768 RVA: 0x000135C0 File Offset: 0x000117C0
|
||||
[Token(Token = "0x6001E58")]
|
||||
[Address(RVA = "0x2921E70", Offset = "0x2920C70", VA = "0x182921E70")]
|
||||
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: 0x06001E59 RID: 7769 RVA: 0x000135D8 File Offset: 0x000117D8
|
||||
[Token(Token = "0x6001E59")]
|
||||
[Address(RVA = "0x2921E70", Offset = "0x2920C70", VA = "0x182921E70")]
|
||||
[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: 0x06001E5A RID: 7770 RVA: 0x000135F0 File Offset: 0x000117F0
|
||||
[Token(Token = "0x6001E5A")]
|
||||
[Address(RVA = "0x2921E90", Offset = "0x2920C90", VA = "0x182921E90")]
|
||||
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: 0x06001E5B RID: 7771 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6001E5B")]
|
||||
[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: 0x06001E5C RID: 7772 RVA: 0x00013608 File Offset: 0x00011808
|
||||
[Token(Token = "0x6001E5C")]
|
||||
[Address(RVA = "0x2921ED0", Offset = "0x2920CD0", VA = "0x182921ED0")]
|
||||
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: 0x06001E5D RID: 7773 RVA: 0x00013620 File Offset: 0x00011820
|
||||
[Token(Token = "0x6001E5D")]
|
||||
[Address(RVA = "0x2921E00", Offset = "0x2920C00", VA = "0x182921E00")]
|
||||
[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: 0x06001E5E RID: 7774 RVA: 0x00013638 File Offset: 0x00011838
|
||||
[Token(Token = "0x6001E5E")]
|
||||
[Address(RVA = "0x2921DF0", Offset = "0x2920BF0", VA = "0x182921DF0")]
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
|
||||
public static long Add(ref long location1, long value)
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user