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