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)
250
while (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) != oldBits);
311
if (Interlocked.
CompareExchange
(pHeader, currentThreadID, oldBits) == oldBits)
373
if (Interlocked.
CompareExchange
(pHeader, currentThreadID, oldBits) == oldBits)
442
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)
462
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)
518
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)