7 references to CompareExchange
System.Private.CoreLib (7)
System\Threading\Interlocked.cs (1)
37
return
CompareExchange
(location1, value, comparand); // Must expand intrinsic
System\Threading\ObjectHeader.cs (6)
155
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)
250
while (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) != oldBits);
315
if (Interlocked.
CompareExchange
(pHeader, oldBits | currentThreadID, oldBits) == oldBits)
372
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)
401
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)
461
if (Interlocked.
CompareExchange
(pHeader, newBits, oldBits) == oldBits)