diff options
Diffstat (limited to 'host/lib/transport')
-rw-r--r-- | host/lib/transport/libusb1_zero_copy.cpp | 6 | ||||
-rw-r--r-- | host/lib/transport/super_recv_packet_handler.hpp | 12 | ||||
-rw-r--r-- | host/lib/transport/super_send_packet_handler.hpp | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp index fbeddbcdd..356d247cb 100644 --- a/host/lib/transport/libusb1_zero_copy.cpp +++ b/host/lib/transport/libusb1_zero_copy.cpp @@ -15,7 +15,7 @@ #include <boost/bind.hpp> #include <boost/circular_buffer.hpp> #include <boost/format.hpp> -#include <boost/function.hpp> +#include <functional> #include <memory> #include <boost/thread/condition_variable.hpp> #include <boost/thread/mutex.hpp> @@ -115,7 +115,7 @@ class libusb_zero_copy_mb : public managed_buffer public: libusb_zero_copy_mb(libusb_transfer* lut, const size_t frame_size, - boost::function<void(libusb_zero_copy_mb*)> release_cb, + std::function<void(libusb_zero_copy_mb*)> release_cb, const bool is_recv, const std::string& name) : _release_cb(release_cb) @@ -192,7 +192,7 @@ public: } private: - boost::function<void(libusb_zero_copy_mb*)> _release_cb; + std::function<void(libusb_zero_copy_mb*)> _release_cb; const bool _is_recv; const std::string _name; libusb_context* _ctx; diff --git a/host/lib/transport/super_recv_packet_handler.hpp b/host/lib/transport/super_recv_packet_handler.hpp index a09281459..b19b50b38 100644 --- a/host/lib/transport/super_recv_packet_handler.hpp +++ b/host/lib/transport/super_recv_packet_handler.hpp @@ -20,7 +20,7 @@ #include <uhd/utils/tasks.hpp> #include <boost/dynamic_bitset.hpp> #include <boost/format.hpp> -#include <boost/function.hpp> +#include <functional> #include <memory> #include <iostream> #include <vector> @@ -36,7 +36,7 @@ UHD_INLINE uint32_t get_context_code( return word0 & 0xff; } -typedef boost::function<void(void)> handle_overflow_type; +typedef std::function<void(void)> handle_overflow_type; static inline void handle_overflow_nop(void) {} /*********************************************************************** @@ -49,12 +49,12 @@ static inline void handle_overflow_nop(void) {} class recv_packet_handler { public: - typedef boost::function<managed_recv_buffer::sptr(double)> get_buff_type; - typedef boost::function<void(const size_t)> handle_flowctrl_type; + typedef std::function<managed_recv_buffer::sptr(double)> get_buff_type; + typedef std::function<void(const size_t)> handle_flowctrl_type; typedef std::function<void(const uint32_t*)> handle_flowctrl_ack_type; - typedef boost::function<void(const stream_cmd_t&)> issue_stream_cmd_type; + typedef std::function<void(const stream_cmd_t&)> issue_stream_cmd_type; typedef void (*vrt_unpacker_type)(const uint32_t*, vrt::if_packet_info_t&); - // typedef boost::function<void(const uint32_t *, vrt::if_packet_info_t &)> + // typedef std::function<void(const uint32_t *, vrt::if_packet_info_t &)> // vrt_unpacker_type; /*! diff --git a/host/lib/transport/super_send_packet_handler.hpp b/host/lib/transport/super_send_packet_handler.hpp index 40ca2e414..21f7357c3 100644 --- a/host/lib/transport/super_send_packet_handler.hpp +++ b/host/lib/transport/super_send_packet_handler.hpp @@ -18,7 +18,7 @@ #include <uhd/utils/byteswap.hpp> #include <uhd/utils/tasks.hpp> #include <uhd/utils/thread.hpp> -#include <boost/function.hpp> +#include <functional> #include <chrono> #include <iostream> #include <thread> |