8 references to CompareExchange
System.Private.CoreLib (8)
System\Threading\Interlocked.cs (1)
37
return
CompareExchange
(location1, value, comparand); // Must expand intrinsic
System\Threading\ObjectHeader.NativeAot.cs (7)
155
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)
249
while (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) != oldBits);
310
if (Interlocked.
CompareExchange
(pHeader, currentThreadID, oldBits) == oldBits)
372
if (Interlocked.
CompareExchange
(pHeader, currentThreadID, oldBits) == oldBits)
441
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)
461
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)
517
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)