Home
last modified time | relevance | path

Searched refs:avail_ (Results 1 – 2 of 2) sorted by relevance

/third_party/nghttp2/src/
Dshrpx_rate_limit.cc48 avail_(burst), in RateLimit()
63 return avail_; in avail()
70 n = std::min(avail_, n); in drain()
71 avail_ -= n; in drain()
72 if (avail_ == 0) { in drain()
81 if (avail_ + rate_ > burst_) { in regen()
82 avail_ = burst_; in regen()
84 avail_ += rate_; in regen()
87 if (w_->fd >= 0 && avail_ > 0 && startw_req_) { in regen()
98 if (rate_ == 0 || avail_ > 0) { in startw()
Dshrpx_rate_limit.h62 size_t avail_; variable