43 references to CompareExchange
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.VisualBasic (8)
Microsoft.Extensions.Options (1)
Microsoft.ML.Data (1)
System.ComponentModel.Composition (1)
System.Diagnostics.DiagnosticSource (4)
System.Linq.Expressions (3)
System.Net.Http (1)
System.Net.HttpListener (1)
System.Net.Mail (1)
System.Net.Requests (1)
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (5)
4569oldValue = Interlocked.CompareExchange(ref m_continuationObject, list, expected);
4626if ((m_continuationObject != null) || (Interlocked.CompareExchange(ref m_continuationObject, tc, null) != null))
4650continuationsLocalRef = Interlocked.CompareExchange(ref m_continuationObject, new List<object?>(), continuationObject);
6101object? failedOrCanceled = Interlocked.CompareExchange(ref m_stateObject, completedTask, null);
6120failedOrCanceled = Interlocked.CompareExchange(ref m_stateObject, new List<Task> { first, completedTask }, first);
System.Runtime.Caching (1)
System.Transactions.Local (6)
System.Xaml (1)