From 2f6253667eec6be60e27d43ced7a72e689838e94 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 16 Apr 2018 11:02:13 -0700 Subject: cores: rx_vita_core_3000: Replace boost::this_thread::sleep() Use std::this_thread::sleep_for() instead. --- host/lib/usrp/cores/rx_vita_core_3000.cpp | 5 +++-- 1 file 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 #include #include -#include +#include +#include #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); -- cgit v1.2.3