diff options
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 4 | ||||
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_iface.cpp | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index 2b8c7a5d1..7042f0391 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -26,6 +26,8 @@ #include <boost/thread/mutex.hpp> #include <boost/make_shared.hpp> #include <iostream> +#include <chrono> +#include <thread> using namespace uhd; using namespace uhd::usrp; @@ -384,7 +386,7 @@ void usrp2_impl::program_stream_dest( std::memcpy(send_buff->cast<void *>(), &stream_ctrl, sizeof(stream_ctrl)); send_buff->commit(sizeof(stream_ctrl)); send_buff.reset(); - boost::this_thread::sleep(boost::posix_time::milliseconds(300)); + std::this_thread::sleep_for(std::chrono::milliseconds(300)); managed_recv_buffer::sptr recv_buff = xport->get_recv_buff(0.0); if (recv_buff and recv_buff->size() >= sizeof(uint32_t)){ const uint32_t result = uhd::ntohx(recv_buff->cast<const uint32_t *>()[0]); diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp index a3d1bc390..c8283c500 100644 --- a/host/lib/usrp/usrp2/usrp2_iface.cpp +++ b/host/lib/usrp/usrp2/usrp2_iface.cpp @@ -16,7 +16,6 @@ #include <uhd/utils/paths.hpp> #include <uhd/utils/safe_call.hpp> #include <uhd/types/dict.hpp> -#include <boost/thread.hpp> #include <boost/asio.hpp> //used for htonl and ntohl #include <boost/assign/list_of.hpp> #include <boost/format.hpp> @@ -26,6 +25,8 @@ #include <boost/filesystem.hpp> #include <algorithm> #include <iostream> +#include <chrono> +#include <thread> #include <uhd/utils/platform.hpp> using namespace uhd; @@ -118,7 +119,7 @@ public: //re-lock in task this->pokefw(U2_FW_REG_LOCK_TIME, this->get_curr_time()); //sleep for a bit - boost::this_thread::sleep(boost::posix_time::milliseconds(1500)); + std::this_thread::sleep_for(std::chrono::milliseconds(1500)); } uint32_t get_curr_time(void){ |