7 references to Exchange
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\InstanceContext.cs (1)
284object oldUserObject = Interlocked.Exchange(ref _userObject, newUserObject);
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (1)
108Interlocked.Exchange(
System.Data.Odbc (1)
System\Data\Odbc\OdbcEnvironment.cs (1)
33object? globalEnvironmentHandle = Interlocked.Exchange(ref s_globalEnvironmentHandle, null);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (1)
248object? result = Exchange(ref Unsafe.As<T, object?>(ref location1), value);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
3446object? continuationObject = Interlocked.Exchange(ref m_continuationObject, s_taskCompletionSentinel);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (2)
779workItem = Interlocked.Exchange(ref _nextWorkItemToProcess, null); 974workItem = Interlocked.Exchange(ref workQueue._nextWorkItemToProcess, null);