From 04a83b6e76beef970854da69ba882d717669b49c Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 9 Jul 2021 11:02:01 +0200 Subject: uhd: Replace boost::thread::id with std::thread::id The Boost version is identical to the std:: version (which is available since C++11) and thus is no longer needed. Because of implicit includes, this breaks compilation in other parts. Appropriate includes were added there also. --- host/include/uhd/utils/log.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/utils/log.hpp b/host/include/uhd/utils/log.hpp index 85e0d6bc5..f333f9594 100644 --- a/host/include/uhd/utils/log.hpp +++ b/host/include/uhd/utils/log.hpp @@ -9,12 +9,13 @@ #include #include -#include +#include #include #include #include #include #include +#include /*! \file log.hpp * @@ -135,7 +136,7 @@ struct UHD_API logging_info const std::string& file_, const unsigned int& line_, const std::string& component_, - const boost::thread::id& thread_id_) + const std::thread::id& thread_id_) : time(time_) , verbosity(verbosity_) , file(file_) @@ -150,7 +151,7 @@ struct UHD_API logging_info std::string file; unsigned int line; std::string component; - boost::thread::id thread_id; + std::thread::id thread_id; std::string message; }; @@ -187,7 +188,7 @@ UHD_API void set_logger_level(const std::string& logger, uhd::log::severity_leve //! \cond //! Internal logging macro to be used in other macros #define _UHD_LOG_INTERNAL(component, level) \ - uhd::_log::log(level, __FILE__, __LINE__, component, boost::this_thread::get_id()) + uhd::_log::log(level, __FILE__, __LINE__, component, std::this_thread::get_id()) //! \endcond // macro-style logging (compile-time determined) @@ -292,7 +293,7 @@ public: const std::string& file, const unsigned int line, const std::string& component, - const boost::thread::id thread_id); + const std::thread::id thread_id); ~log(void); -- cgit v1.2.3