aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/libusb1_zero_copy.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-09-28 12:54:27 +0200
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:21:32 -0800
commitfcc2e9c602a6103dfd0f75e035f614b177c5dc35 (patch)
tree8c6162ab134a79f343b8404f1d82b6bd9483d116 /host/lib/transport/libusb1_zero_copy.cpp
parent0c43030e71f4786bf1ba1b7f08abf6b3d019761f (diff)
downloaduhd-fcc2e9c602a6103dfd0f75e035f614b177c5dc35.tar.gz
uhd-fcc2e9c602a6103dfd0f75e035f614b177c5dc35.tar.bz2
uhd-fcc2e9c602a6103dfd0f75e035f614b177c5dc35.zip
uhd: Replace boost::function with std::function
This is mostly a search-and-replace operation, with few exceptions: - boost::function has a clear() method. In C++11, this is achieved by assigning nullptr to the std::function object. - The empty() method is replaced by std::function's bool() operator
Diffstat (limited to 'host/lib/transport/libusb1_zero_copy.cpp')
-rw-r--r--host/lib/transport/libusb1_zero_copy.cpp6
1 files changed, 3 insertions, 3 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;