Lines Matching refs:refill_bucket_event
287 if (event_add(&bev->rate_limiting->refill_bucket_event, in _bufferevent_decrement_read_buckets()
292 event_del(&bev->rate_limiting->refill_bucket_event); in _bufferevent_decrement_read_buckets()
325 if (event_add(&bev->rate_limiting->refill_bucket_event, in _bufferevent_decrement_write_buckets()
330 event_del(&bev->rate_limiting->refill_bucket_event); in _bufferevent_decrement_write_buckets()
437 event_add(&bev->rate_limiting->refill_bucket_event, in _bev_refill_callback()
579 if (event_initialized(&rlim->refill_bucket_event)) in bufferevent_set_rate_limit()
580 event_del(&rlim->refill_bucket_event); in bufferevent_set_rate_limit()
608 EVUTIL_ASSERT(event_initialized(&rlim->refill_bucket_event)); in bufferevent_set_rate_limit()
609 event_del(&rlim->refill_bucket_event); in bufferevent_set_rate_limit()
611 evtimer_assign(&rlim->refill_bucket_event, bev->ev_base, in bufferevent_set_rate_limit()
628 event_add(&rlim->refill_bucket_event, &cfg->tick_timeout); in bufferevent_set_rate_limit()
747 evtimer_assign(&rlim->refill_bucket_event, bev->ev_base, in bufferevent_add_to_rate_limit_group()
914 if (event_add(&bevp->rate_limiting->refill_bucket_event, in bufferevent_decrement_read_limit()
919 event_del(&bevp->rate_limiting->refill_bucket_event); in bufferevent_decrement_read_limit()
943 if (event_add(&bevp->rate_limiting->refill_bucket_event, in bufferevent_decrement_write_limit()
948 event_del(&bevp->rate_limiting->refill_bucket_event); in bufferevent_decrement_write_limit()