aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/udp_zero_copy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/transport/udp_zero_copy.cpp')
-rw-r--r--host/lib/transport/udp_zero_copy.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/host/lib/transport/udp_zero_copy.cpp b/host/lib/transport/udp_zero_copy.cpp
index 44df9526d..883b2a68a 100644
--- a/host/lib/transport/udp_zero_copy.cpp
+++ b/host/lib/transport/udp_zero_copy.cpp
@@ -11,7 +11,7 @@
#include <uhdlib/transport/udp_common.hpp>
#include <uhdlib/utils/atomic.hpp>
#include <boost/format.hpp>
-#include <boost/make_shared.hpp>
+#include <memory>
#include <chrono>
#include <thread>
#include <vector>
@@ -138,7 +138,7 @@ private:
class udp_zero_copy_asio_impl : public udp_zero_copy
{
public:
- typedef boost::shared_ptr<udp_zero_copy_asio_impl> sptr;
+ typedef std::shared_ptr<udp_zero_copy_asio_impl> sptr;
udp_zero_copy_asio_impl(const std::string& addr,
const std::string& port,
@@ -169,13 +169,13 @@ public:
// allocate re-usable managed receive buffers
for (size_t i = 0; i < get_num_recv_frames(); i++) {
- _mrb_pool.push_back(boost::make_shared<udp_zero_copy_asio_mrb>(
+ _mrb_pool.push_back(std::make_shared<udp_zero_copy_asio_mrb>(
_recv_buffer_pool->at(i), _sock_fd, get_recv_frame_size()));
}
// allocate re-usable managed send buffers
for (size_t i = 0; i < get_num_send_frames(); i++) {
- _msb_pool.push_back(boost::make_shared<udp_zero_copy_asio_msb>(
+ _msb_pool.push_back(std::make_shared<udp_zero_copy_asio_msb>(
_send_buffer_pool->at(i), _sock_fd, get_send_frame_size()));
}
}
@@ -247,8 +247,8 @@ private:
const size_t _recv_frame_size, _num_recv_frames;
const size_t _send_frame_size, _num_send_frames;
buffer_pool::sptr _recv_buffer_pool, _send_buffer_pool;
- std::vector<boost::shared_ptr<udp_zero_copy_asio_msb>> _msb_pool;
- std::vector<boost::shared_ptr<udp_zero_copy_asio_mrb>> _mrb_pool;
+ std::vector<std::shared_ptr<udp_zero_copy_asio_msb>> _msb_pool;
+ std::vector<std::shared_ptr<udp_zero_copy_asio_mrb>> _mrb_pool;
size_t _next_recv_buff_index, _next_send_buff_index;
// asio guts -> socket and service