MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / is_blocked

Method is_blocked

rate_limiter/src/lib.rs:449–451  ·  view source on GitHub ↗

Returns whether this rate limiter is blocked. The limiter 'blocks' when a `consume()` operation fails because there was not enough budget for it. An event will be generated on the exported FD when the limiter 'unblocks'.

(&self)

Source from the content-addressed store, hash-verified

447 /// budget for it.
448 /// An event will be generated on the exported FD when the limiter 'unblocks'.
449 pub fn is_blocked(&self) -> bool {
450 self.timer_active.load(Ordering::Relaxed)
451 }
452
453 /// This function needs to be called every time there is an event on the
454 /// FD provided by this object's `AsRawFd` trait implementation.

Callers 5

process_rxMethod · 0.45
consumeMethod · 0.45
handle_rx_eventMethod · 0.45
handle_tx_eventMethod · 0.45
handle_eventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected