10 references to CompareExchange
mscorlib (5)
system\collections\concurrent\PartitionerStatic.cs (1)
1157
if (Interlocked.
CompareExchange
(ref m_sharedIndex.Value, newSharedIndex, oldSharedIndex)
system\threading\interlocked.cs (1)
247
return Interlocked.
CompareExchange
(ref location,0,0);
system\threading\Tasks\ParallelLoopState.cs (1)
266
while (Interlocked.
CompareExchange
(
system\threading\volatile.cs (2)
128
return Interlocked.
CompareExchange
(ref location, 0, 0);
145
return (ulong)Interlocked.
CompareExchange
(ref *(long*)pLocation, 0, 0);
System.Runtime.DurableInstancing (3)
System\Runtime\DurableInstancing\InstanceView.cs (3)
279
if (Interlocked.
CompareExchange
(ref this.instanceVersion, instanceVersion, -1) != -1)
299
if (Interlocked.
CompareExchange
(ref this.instanceVersion, checked(-instanceVersion - 2), -1) != -1)
312
long result = Interlocked.
CompareExchange
(ref this.instanceVersion, instanceVersion, -instanceVersion - 2);
System.ServiceModel (1)
System\ServiceModel\Channels\ServiceChannel.cs (1)
2655
long last = Interlocked.
CompareExchange
(ref this.lastActivity, 0, 0);
System.Web (1)
HttpContext.cs (1)
1710
long originalTicks = Interlocked.
CompareExchange
(ref _timeoutTicks, ticks, -1);