diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-07-09 11:02:01 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-07-14 16:19:08 -0500 |
commit | 04a83b6e76beef970854da69ba882d717669b49c (patch) | |
tree | 2c27939ca0b452698e9949beeea9183be27c0b72 /host/include | |
parent | baac9a3aaa3e1ce59cb5cd734cd21dc6ed607447 (diff) | |
download | uhd-04a83b6e76beef970854da69ba882d717669b49c.tar.gz uhd-04a83b6e76beef970854da69ba882d717669b49c.tar.bz2 uhd-04a83b6e76beef970854da69ba882d717669b49c.zip |
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.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/utils/log.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
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 <uhd/config.hpp> #include <boost/current_function.hpp> -#include <boost/thread/thread.hpp> +#include <boost/date_time/posix_time/posix_time_types.hpp> #include <iomanip> #include <iostream> #include <ostream> #include <sstream> #include <string> +#include <thread> /*! \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); |