4 writes to m_currentCount
mscorlib (4)
system\threading\SemaphoreSlim.cs (4)
196
m_currentCount
= initialCount;
405
m_currentCount
--;
620
--
m_currentCount
;
818
m_currentCount
= currentCount;
12 references to m_currentCount
mscorlib (12)
system\threading\SemaphoreSlim.cs (12)
112
get { return
m_currentCount
; }
145
m_waitHandle = new ManualResetEvent(
m_currentCount
!= 0);
347
while (
m_currentCount
== 0 && !spin.NextSpinWillYield)
379
if (
m_currentCount
== 0)
400
Contract.Assert(!waitSuccessful ||
m_currentCount
> 0,
402
if (
m_currentCount
> 0)
413
if (m_waitHandle != null &&
m_currentCount
== 0)
454
while (
m_currentCount
== 0)
618
if (
m_currentCount
> 0)
621
if (m_waitHandle != null &&
m_currentCount
== 0) m_waitHandle.Reset();
629
Contract.Assert(
m_currentCount
== 0, "m_currentCount should never be negative");
774
int currentCount =
m_currentCount
;