Function swbus_rxq_timedwait
Defined in File swbus.h
Function Documentation
- struct swbus_rxq_ent * swbus_rxq_timedwait (struct swbus *swb, struct pcqueue *queue, struct timespec *to) RCSW_WUR
Wait (until a timeout) until the given receive queue is not empty.
Regardless of how the packet was published, you need to call swbus_rxq_pop_front() when you are finished with the packet.
- Parameters:
swb – The swb handle.
queue – The receive queue to wait on.
to – A RELATIVE timeout.
- Returns:
A reference to the first item in the queue, or NULL if an ERROR or a timeout occurred.