USRP Hardware Driver and USRP Manual Version: 4.1.0.1
UHD and USRP Manual
zero_copy_flow_ctrl.hpp
Go to the documentation of this file.
1//
2// Copyright 2017 Ettus Research
3// Copyright 2018 Ettus Research, a National Instruments Company
4//
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
7
8#pragma once
9
10#include <uhd/config.hpp>
12#include <functional>
13#include <memory>
14
15namespace uhd { namespace transport {
16
22typedef std::function<bool(managed_buffer::sptr buff)> flow_ctrl_func;
23
28{
29public:
30 typedef std::shared_ptr<zero_copy_flow_ctrl> sptr;
31
40 static sptr make(zero_copy_if::sptr transport,
41 flow_ctrl_func send_flow_ctrl,
42 flow_ctrl_func recv_flow_ctrl);
43};
44
45}} // namespace uhd::transport
boost::intrusive_ptr< managed_buffer > sptr
Definition: zero_copy.hpp:72
Definition: zero_copy_flow_ctrl.hpp:28
std::shared_ptr< zero_copy_flow_ctrl > sptr
Definition: zero_copy_flow_ctrl.hpp:30
static sptr make(zero_copy_if::sptr transport, flow_ctrl_func send_flow_ctrl, flow_ctrl_func recv_flow_ctrl)
Definition: zero_copy.hpp:147
std::shared_ptr< zero_copy_if > sptr
Definition: zero_copy.hpp:149
#define UHD_API
Definition: config.h:70
std::function< bool(managed_buffer::sptr buff)> flow_ctrl_func
Definition: zero_copy_flow_ctrl.hpp:22
Definition: build_info.hpp:12