From 0303f1ed558b21e40f80c388b096432b4bf6e883 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 26 Apr 2018 09:30:48 -0700 Subject: lib: Purge all references to boost::this_thread::sleep() Replace with std::this_thread::sleep_for(). --- host/lib/include/uhdlib/usrp/common/max287x.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'host/lib/include/uhdlib') diff --git a/host/lib/include/uhdlib/usrp/common/max287x.hpp b/host/lib/include/uhdlib/usrp/common/max287x.hpp index 762daf7b6..154a967b4 100644 --- a/host/lib/include/uhdlib/usrp/common/max287x.hpp +++ b/host/lib/include/uhdlib/usrp/common/max287x.hpp @@ -8,6 +8,8 @@ #ifndef MAX287X_HPP_INCLUDED #define MAX287X_HPP_INCLUDED +#include "max2870_regs.hpp" +#include "max2871_regs.hpp" #include #include #include @@ -16,12 +18,11 @@ #include #include #include -#include #include -#include #include -#include "max2870_regs.hpp" -#include "max2871_regs.hpp" +#include +#include +#include /** * MAX287x interface @@ -915,7 +916,7 @@ void max287x::commit() if (_delay_after_write) { - boost::this_thread::sleep(boost::posix_time::milliseconds(20)); + std::this_thread::sleep_for(std::chrono::milliseconds(20)); _delay_after_write = false; } } -- cgit v1.2.3