From 27f5e9151c1621f25948a579c1cf7aa0e156e323 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 16 Apr 2018 10:56:28 -0700 Subject: x300: Replace all references to boost::this_thread::sleep() Use std::this_thread::sleep_for() instead. --- host/lib/transport/nirio/niusrprio_session.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host/lib/transport/nirio') 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 #include #include +#include +#include #include 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++) { -- cgit v1.2.3