MCPcopy Create free account
hub / github.com/FDio/vpp / poll_ring_buffer

Method poll_ring_buffer

src/vpp-api/python/vpp_papi/vpp_stats.py:313–316  ·  view source on GitHub ↗

Convenience method to poll a ring buffer by name

(self, name, thread_index=0, timeout=None, callback=None)

Source from the content-addressed store, hash-verified

311 raise
312
313 def poll_ring_buffer(self, name, thread_index=0, timeout=None, callback=None):
314 """Convenience method to poll a ring buffer by name"""
315 ring_buffer = self.get_ring_buffer(name)
316 return ring_buffer.poll_for_data(thread_index, timeout, callback)
317
318 async def poll_ring_buffer_async(
319 self, name, thread_index=0, timeout=None, callback=None

Callers

nothing calls this directly

Calls 2

get_ring_bufferMethod · 0.95
poll_for_dataMethod · 0.80

Tested by

no test coverage detected