5 writes to _currentCount
System.Threading (5)
System\Threading\CountdownEvent.cs (5)
53_currentCount = initialCount; 183int newCount = Interlocked.Decrement(ref _currentCount); 233if (Interlocked.CompareExchange(ref _currentCount, observedCount - signalCount, observedCount) == observedCount) 340if (Interlocked.CompareExchange(ref _currentCount, observedCount + signalCount, observedCount) == observedCount) 384_currentCount = count;
6 references to _currentCount
System.Threading (6)
System\Threading\CountdownEvent.cs (6)
75int observedCount = _currentCount; 103return (_currentCount <= 0); 178if (_currentCount <= 0) 225observedCount = _currentCount; 249Debug.Assert(_currentCount >= 0, "latch was decremented below zero"); 329observedCount = _currentCount;