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