3 references to CompareExchange
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (2)
238(sbyte)CompareExchange(ref Unsafe.As<sbyte, byte>(ref location1), (byte)value, (byte)comparand); 262return CompareExchange(ref location1, value, comparand); // Must expand intrinsic
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
112sizeof(T) == sizeof(byte) ? Interlocked.CompareExchange(ref Unsafe.As<T, byte>(ref location), Unsafe.As<T, byte>(ref value), Unsafe.As<T, byte>(ref comparand)) == Unsafe.As<T, byte>(ref comparand) :