6 references to CompareExchange
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\CastCache.cs (2)
310uint versionOrig = Interlocked.CompareExchange(ref pEntry._version, newVersion, version); 373uint versionOrig = Interlocked.CompareExchange(ref pEntry._version, newVersion, version);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\GenericCache.cs (2)
293uint versionOrig = Interlocked.CompareExchange(ref pEntry.Version, newVersion, version); 357uint versionOrig = Interlocked.CompareExchange(ref pEntry.Version, newVersion, version);
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
845new State(Interlocked.CompareExchange(ref lockObj._state, toState._state, fromState._state));
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerTracking.cs (1)
112Interlocked.CompareExchange(ref _data, newCounts._data, oldCounts._data));