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