diff options
Diffstat (limited to 'host/lib/transport/nirio')
-rw-r--r-- | host/lib/transport/nirio/niusrprio_session.cpp | 5 |
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++) { |