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