aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_iface.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-04-26 09:30:48 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-30 17:10:26 -0700
commit0303f1ed558b21e40f80c388b096432b4bf6e883 (patch)
tree05afcc4d2401bb86f9e38e3b04ec5b07e9268302 /host/lib/usrp/dboard_iface.cpp
parentfc67052345373c6d5c1b62064a9f9ef6f888e3ff (diff)
downloaduhd-0303f1ed558b21e40f80c388b096432b4bf6e883.tar.gz
uhd-0303f1ed558b21e40f80c388b096432b4bf6e883.tar.bz2
uhd-0303f1ed558b21e40f80c388b096432b4bf6e883.zip
lib: Purge all references to boost::this_thread::sleep()
Replace with std::this_thread::sleep_for().
Diffstat (limited to 'host/lib/usrp/dboard_iface.cpp')
-rw-r--r--host/lib/usrp/dboard_iface.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard_iface.cpp b/host/lib/usrp/dboard_iface.cpp
index 55b3c19ba..3bda643fe 100644
--- a/host/lib/usrp/dboard_iface.cpp
+++ b/host/lib/usrp/dboard_iface.cpp
@@ -6,6 +6,8 @@
//
#include <uhd/usrp/dboard_iface.hpp>
+#include <chrono>
+#include <thread>
using namespace uhd::usrp;
@@ -14,8 +16,8 @@ void dboard_iface::sleep(const boost::chrono::nanoseconds& time)
//nanosleep is not really accurate in userland and it is also not very
//cross-platform. So just sleep for the minimum amount of time in us.
if (time < boost::chrono::microseconds(1)) {
- boost::this_thread::sleep_for(boost::chrono::microseconds(1));
+ std::this_thread::sleep_for(std::chrono::microseconds(1));
} else {
- boost::this_thread::sleep_for(time);
+ std::this_thread::sleep_for(std::chrono::microseconds(time.count()));
}
}