queue_generator

spidr4.stream.queue_generator(q, timeout=0.05)[source]

Generator for retrieving packets from a queue. Data can be placed in the queue from the packet_read_thread.

Parameters:
  • q – The queue to read from

  • timeout – Optional timeout, default 40 ms