5 writes to _current
System.Net.Http (5)
System\Net\Http\SocketsHttpHandler\CreditManager.cs (5)
28
_current
= initialCredit;
31
public bool IsCreditAvailable => Volatile.Read(ref
_current
) > 0;
99
_current
= checked(_current + amount);
123
_current
-= granted;
171
_current
-= granted;
8 references to _current
System.Net.Http (8)
System\Net\Http\SocketsHttpHandler\CreditManager.cs (8)
90
if (NetEventSource.Log.IsEnabled()) _owner.Trace($"{_name}. {nameof(amount)}={amount}, current={
_current
}");
97
Debug.Assert(
_current
<= 0 || _waitersTail is null, "Shouldn't have waiters when credit is available");
99
_current = checked(
_current
+ amount);
101
while (
_current
> 0 && _waitersTail != null)
106
int granted = Math.Min(waiter.Amount,
_current
);
165
if (
_current
> 0)
169
int granted = Math.Min(amount,
_current
);
170
if (NetEventSource.Log.IsEnabled()) _owner.Trace($"{_name}. requested={amount}, current={
_current
}, granted={granted}");