using System; using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace System.Threading { /// Provides atomic operations for variables that are shared by multiple threads. // Token: 0x02000347 RID: 839 [Token(Token = "0x2000347")] public static class Interlocked { /// Compares two 32-bit signed integers for equality and, if they are equal, replaces the first value. /// The destination, whose value is compared with and possibly replaced. /// The value that replaces the destination value if the comparison results in equality. /// The value that is compared to the value at . /// The original value in . /// The address of is a null pointer. // 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; } /// Compares two objects for reference equality and, if they are equal, replaces the first object. /// The destination object that is compared by reference with and possibly replaced. /// The object that replaces the destination object if the reference comparison results in equality. /// The object that is compared by reference to the object at . /// The original value in . /// The address of is a null pointer. // 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; } /// Compares two single-precision floating point numbers for equality and, if they are equal, replaces the first value. /// The destination, whose value is compared with and possibly replaced. /// The value that replaces the destination value if the comparison results in equality. /// The value that is compared to the value at . /// The original value in . /// The address of is a null pointer. // 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; } /// Decrements a specified variable and stores the result, as an atomic operation. /// The variable whose value is to be decremented. /// The decremented value. /// The address of is a null pointer. // 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; } /// Increments a specified variable and stores the result, as an atomic operation. /// The variable whose value is to be incremented. /// The incremented value. /// The address of is a null pointer. // 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; } /// Increments a specified variable and stores the result, as an atomic operation. /// The variable whose value is to be incremented. /// The incremented value. /// The address of is a null pointer. // 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; } /// Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation. /// The variable to set to the specified value. /// The value to which the parameter is set. /// The original value of . /// The address of is a null pointer. // 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; } /// Sets an object to a specified value and returns a reference to the original object, as an atomic operation. /// The variable to set to the specified value. /// The value to which the parameter is set. /// The original value of . /// The address of is a null pointer. // 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; } /// Sets a single-precision floating point number to a specified value and returns the original value, as an atomic operation. /// The variable to set to the specified value. /// The value to which the parameter is set. /// The original value of . /// The address of is a null pointer. // 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; } /// Compares two 64-bit signed integers for equality and, if they are equal, replaces the first value. /// The destination, whose value is compared with and possibly replaced. /// The value that replaces the destination value if the comparison results in equality. /// The value that is compared to the value at . /// The original value in . /// The address of is a null pointer. // 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; } /// Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one. /// The destination , whose value is compared with the value of and possibly replaced by . /// The that replaces the destination value if the comparison results in equality. /// The that is compared to the value at . /// The original value in . /// The address of is a null pointer. // 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; } /// Compares two double-precision floating point numbers for equality and, if they are equal, replaces the first value. /// The destination, whose value is compared with and possibly replaced. /// The value that replaces the destination value if the comparison results in equality. /// The value that is compared to the value at . /// The original value in . /// The address of is a null pointer. // 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; } /// Compares two instances of the specified reference type for reference equality and, if they are equal, replaces the first one. /// The destination, whose value is compared by reference with and possibly replaced. This is a reference parameter ( in C#, in Visual Basic). /// The value that replaces the destination value if the comparison by reference results in equality. /// The value that is compared by reference to the value at . /// The type to be used for , , and . This type must be a reference type. /// The original value in . /// The address of is a null pointer. // Token: 0x06001E57 RID: 7767 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001E57")] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] [ComVisible(false)] public static T CompareExchange(ref T location1, T value, T comparand) where T : class { return null; } /// Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation. /// The variable to set to the specified value. /// The value to which the parameter is set. /// The original value of . /// The address of is a null pointer. // 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; } /// Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation. /// The variable to set to the specified value. /// The value to which the parameter is set. /// The original value of . /// The address of is a null pointer. // 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; } /// Sets a double-precision floating point number to a specified value and returns the original value, as an atomic operation. /// The variable to set to the specified value. /// The value to which the parameter is set. /// The original value of . /// The address of is a null pointer. // 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; } /// Sets a variable of the specified type to a specified value and returns the original value, as an atomic operation. /// The variable to set to the specified value. This is a reference parameter ( in C#, in Visual Basic). /// The value to which the parameter is set. /// The type to be used for and . This type must be a reference type. /// The original value of . /// The address of is a null pointer. // Token: 0x06001E5B RID: 7771 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001E5B")] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] [ComVisible(false)] public static T Exchange(ref T location1, T value) where T : class { return null; } /// Returns a 64-bit value, loaded as an atomic operation. /// The 64-bit value to be loaded. /// The loaded value. // 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; } /// Adds two 32-bit integers and replaces the first integer with the sum, as an atomic operation. /// A variable containing the first value to be added. The sum of the two values is stored in . /// The value to be added to the integer at . /// The new value stored at . /// The address of is a null pointer. // 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; } /// Adds two 64-bit integers and replaces the first integer with the sum, as an atomic operation. /// A variable containing the first value to be added. The sum of the two values is stored in . /// The value to be added to the integer at . /// The new value stored at . /// The address of is a null pointer. // 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; } } }