Interlocked
Add(Int32, Int32)
Add(Int64, Int64)
Add(UInt32, UInt32)
Add(UInt64, UInt64)
And(Int32, Int32)
And(Int64, Int64)
And(UInt32, UInt32)
And(UInt64, UInt64)
CompareExchange(Byte, Byte, Byte)
CompareExchange(Double, Double, Double)
CompareExchange(Int16, Int16, Int16)
CompareExchange(Int32, Int32, Int32)
CompareExchange(Int64, Int64, Int64)
CompareExchange(IntPtr, IntPtr, IntPtr)
CompareExchange(nuint, nuint, nuint)
CompareExchange(Object, Object, Object)
CompareExchange(SByte, SByte, SByte)
CompareExchange(Single, Single, Single)
CompareExchange(UInt16, UInt16, UInt16)
CompareExchange(UInt32, UInt32, UInt32)
CompareExchange(UInt64, UInt64, UInt64)
CompareExchange<T>(T, T, T)
Decrement(Int32)
Decrement(Int64)
Decrement(UInt32)
Decrement(UInt64)
Exchange(Byte, Byte)
Exchange(Double, Double)
Exchange(Int16, Int16)
Exchange(Int32, Int32)
Exchange(Int64, Int64)
Exchange(IntPtr, IntPtr)
Exchange(nuint, nuint)
Exchange(Object, Object)
Exchange(SByte, SByte)
Exchange(Single, Single)
Exchange(UInt16, UInt16)
Exchange(UInt32, UInt32)
Exchange(UInt64, UInt64)
Exchange<T>(T, T)
Increment(Int32)
Increment(Int64)
Increment(UInt32)
Increment(UInt64)
MemoryBarrier()
MemoryBarrierProcessWide()
Or(Int32, Int32)
Or(Int64, Int64)
Or(UInt32, UInt32)
Or(UInt64, UInt64)
Read(Int64)
Read(UInt64)
SpeculationBarrier()
net46
namespace System.Threading
{
public static class Interlocked
{
[ComVisible(false)]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
[SecuritySafeCritical]
public static T CompareExchange<T>(ref T location1, T value, T comparand)
where T, class;
}
}
| NetFx Compat Lab | 68.2 % Reference this API |
|---|---|
| Design Reviews |
|
| .NET | 5.06.07.08.09.010.011.0 |
| .NET Core | 1.01.12.02.12.23.03.1 |
| .NET Framework | 2.03.03.54.04.54.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1 |
| .NET Standard | 1.01.11.21.31.41.51.62.02.1 |
Information specific to net46 | |
| Assembly | mscorlib , Version=4.0.0.0, PublicKeyToken=b77a5c561934e089 |
| Referencing | The API is automatically referenced. |
| Platform Restrictions | This framework does not have platform annotations. |
- Built-in API
- Package-provided API