16 references to Exchange
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (1)
2384
Interlocked.
Exchange
(ref _lastActivity, Ticks.Now);
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Infrastructure\TimeoutControl.cs (4)
48
Interlocked.
Exchange
(ref _lastTimestamp, _timeProvider.GetTimestamp());
57
Interlocked.
Exchange
(ref _lastTimestamp, timestamp);
181
Interlocked.
Exchange
(ref _timeoutTimestamp, long.MaxValue);
192
Interlocked.
Exchange
(ref _timeoutTimestamp, Interlocked.Read(ref _lastTimestamp) + timeoutTicks + _heartbeatIntervalTicks);
Microsoft.Build (1)
TypeLoader.cs (1)
360
Interlocked.
Exchange
(ref _haveScannedPublicTypes, ~0);
MSBuild (1)
TypeLoader.cs (1)
360
Interlocked.
Exchange
(ref _haveScannedPublicTypes, ~0);
MSBuildTaskHost (1)
TypeLoader.cs (1)
269
Interlocked.
Exchange
(ref _haveScannedPublicTypes, ~0);
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\FailedProxyCache.cs (1)
136
Interlocked.
Exchange
(ref _nextFlushTicks, Environment.TickCount64 + FlushFailuresTimerInMilliseconds);
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (1)
275
Interlocked.
Exchange
(ref _minRtt, minRtt); // MinRtt is being queried from another thread
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
833
Interlocked.
Exchange
(ref registrations.ExecutingCallbackId, 0); // for safety, prevent reorderings crossing this point and seeing inconsistent state.
src\System\Threading\Interlocked.CoreCLR.cs (1)
76
return
Exchange
(ref location1, value); // Must expand intrinsic
System.Runtime.Caching (2)
System\Runtime\Caching\CacheMemoryMonitor.cs (2)
126
Interlocked.
Exchange
(ref s_autoPrivateBytesLimit, memoryLimit);
151
Interlocked.
Exchange
(ref s_effectiveProcessMemoryLimit, memoryLimit);
System.Transactions.Local (2)
System\Transactions\TransactionManager.cs (2)
328
Interlocked.
Exchange
(ref s_defaultTimeoutTicks, ValidateTimeout(value).Ticks);
383
Interlocked.
Exchange
(ref s_defaultTimeoutTicks, ValidateTimeout(new TimeSpan(defaultTimeoutTicks)).Ticks);