aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-04-16 11:02:13 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-17 16:48:53 -0700
commit2f6253667eec6be60e27d43ced7a72e689838e94 (patch)
tree65bf2503d9e886be8ea798ee0983244bc3cbd99a /host
parentdc73f9df159e389131bb095d2b4d22df8642095f (diff)
downloaduhd-2f6253667eec6be60e27d43ced7a72e689838e94.tar.gz
uhd-2f6253667eec6be60e27d43ced7a72e689838e94.tar.bz2
uhd-2f6253667eec6be60e27d43ced7a72e689838e94.zip
cores: rx_vita_core_3000: Replace boost::this_thread::sleep()
Use std::this_thread::sleep_for() instead.
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/cores/rx_vita_core_3000.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/cores/rx_vita_core_3000.cpp b/host/lib/usrp/cores/rx_vita_core_3000.cpp
index 1572266a5..764fc1334 100644
--- a/host/lib/usrp/cores/rx_vita_core_3000.cpp
+++ b/host/lib/usrp/cores/rx_vita_core_3000.cpp
@@ -11,7 +11,8 @@
#include <boost/assign/list_of.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/date_time.hpp>
-#include <boost/thread.hpp>
+#include <thread>
+#include <chrono>
#define REG_FRAMER_MAXLEN _base + 4*4 + 0
#define REG_FRAMER_SID _base + 4*4 + 4
@@ -64,7 +65,7 @@ struct rx_vita_core_3000_impl : rx_vita_core_3000
// At 1 ms * 200 MHz = 200k cycles, 8 bytes * 200k cycles = 1.6 MB
// of flushed data, when the typical amount of data buffered
// is on the order of kilobytes
- boost::this_thread::sleep(boost::posix_time::milliseconds(1.0));
+ std::this_thread::sleep_for(std::chrono::milliseconds(1));
_iface->poke32(REG_FC_WINDOW, window_size-1);
_iface->poke32(REG_FC_ENABLE, window_size?1:0);