8 references to CompareExchange
System.Private.CoreLib (8)
System\Threading\Interlocked.cs (1)
37return CompareExchange(location1, value, comparand); // Must expand intrinsic
System\Threading\ObjectHeader.NativeAot.cs (7)
155if (Interlocked.CompareExchange(pHeader, newBits, oldBits) == oldBits) 250while (Interlocked.CompareExchange(pHeader, newBits, oldBits) != oldBits); 311if (Interlocked.CompareExchange(pHeader, currentThreadID, oldBits) == oldBits) 373if (Interlocked.CompareExchange(pHeader, currentThreadID, oldBits) == oldBits) 442if (Interlocked.CompareExchange(pHeader, newBits, oldBits) == oldBits) 462if (Interlocked.CompareExchange(pHeader, newBits, oldBits) == oldBits) 518if (Interlocked.CompareExchange(pHeader, newBits, oldBits) == oldBits)