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