USRP Hardware Driver and USRP Manual  Version: 3.13.0.HEAD-0-gf114cfa0
UHD and USRP Manual
uhd::transport::zero_copy_recv_offload Class Reference

#include <uhd/transport/zero_copy_recv_offload.hpp>

Inheritance diagram for uhd::transport::zero_copy_recv_offload:
uhd::transport::zero_copy_if

Public Types

typedef boost::shared_ptr< zero_copy_recv_offloadsptr
 
- Public Types inherited from uhd::transport::zero_copy_if
typedef boost::shared_ptr< zero_copy_ifsptr
 

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
 

Detailed Description

A threaded transport offload that is meant to relieve the main thread of the responsibility of making receive calls.

Member Typedef Documentation

◆ sptr

Member Function Documentation

◆ make()

static sptr uhd::transport::zero_copy_recv_offload::make ( zero_copy_if::sptr  transport,
const double  timeout 
)
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.

Parameters
transporta shared pointer to the transport interface
timeouta general timeout for pushing and pulling on the bounded buffer

The documentation for this class was generated from the following file: