aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/nirio
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-04-16 10:56:28 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-17 16:48:53 -0700
commit27f5e9151c1621f25948a579c1cf7aa0e156e323 (patch)
tree18f279eacd75f24cbb833f59c9ceac17b5c1d0d4 /host/lib/transport/nirio
parent6fd956def44f7315c47672e961e60a37fd5d1fca (diff)
downloaduhd-27f5e9151c1621f25948a579c1cf7aa0e156e323.tar.gz
uhd-27f5e9151c1621f25948a579c1cf7aa0e156e323.tar.bz2
uhd-27f5e9151c1621f25948a579c1cf7aa0e156e323.zip
x300: Replace all references to boost::this_thread::sleep()
Use std::this_thread::sleep_for() instead.
Diffstat (limited to 'host/lib/transport/nirio')
-rw-r--r--host/lib/transport/nirio/niusrprio_session.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/transport/nirio/niusrprio_session.cpp b/host/lib/transport/nirio/niusrprio_session.cpp
index 0cbc31592..797855a11 100644
--- a/host/lib/transport/nirio/niusrprio_session.cpp
+++ b/host/lib/transport/nirio/niusrprio_session.cpp
@@ -14,6 +14,8 @@
#include <boost/format.hpp>
#include <boost/algorithm/string.hpp>
#include <fstream>
+#include <chrono>
+#include <thread>
#include <stdio.h>
namespace {
@@ -211,7 +213,8 @@ nirio_status niusrprio_session::_ensure_fpga_ready()
//there is a small chance that the server is still finishing up cleaning up
//the DMA FIFOs. We currently don't have any feedback from the driver regarding
//this state so just wait.
- boost::this_thread::sleep(boost::posix_time::milliseconds(FPGA_READY_TIMEOUT_IN_MS));
+ std::this_thread::sleep_for(
+ std::chrono::milliseconds(FPGA_READY_TIMEOUT_IN_MS));
//Disable all FIFOs in the FPGA
for (size_t i = 0; i < _lvbitx->get_input_fifo_count(); i++) {