#include <uhd/transport/zero_copy_recv_offload.hpp>
Public Types | |
typedef boost::shared_ptr< zero_copy_recv_offload > | sptr |
Public Types inherited from uhd::transport::zero_copy_if | |
typedef boost::shared_ptr< zero_copy_if > | sptr |
Static Public Member Functions | |
static sptr | make (zero_copy_if::sptr transport, const double timeout) |
Additional Inherited Members | |
Public Member Functions inherited from uhd::transport::zero_copy_if | |
virtual | ~zero_copy_if () |
virtual managed_recv_buffer::sptr | get_recv_buff (double timeout=0.1)=0 |
virtual size_t | get_num_recv_frames (void) const =0 |
virtual size_t | get_recv_frame_size (void) const =0 |
virtual managed_send_buffer::sptr | get_send_buff (double timeout=0.1)=0 |
virtual size_t | get_num_send_frames (void) const =0 |
virtual size_t | get_send_frame_size (void) const =0 |
A threaded transport offload that is meant to relieve the main thread of the responsibility of making receive calls.
typedef boost::shared_ptr<zero_copy_recv_offload> uhd::transport::zero_copy_recv_offload::sptr |
|
static |
This transport offload adds a receive thread in order to communicate with the underlying transport. It is meant to be used in cases where the main thread needs to be relieved of the burden of the underlying transport receive calls.
transport | a shared pointer to the transport interface |
timeout | a general timeout for pushing and pulling on the bounded buffer |