aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-07-09 11:02:01 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-07-14 16:19:08 -0500
commit04a83b6e76beef970854da69ba882d717669b49c (patch)
tree2c27939ca0b452698e9949beeea9183be27c0b72 /host/lib/utils
parentbaac9a3aaa3e1ce59cb5cd734cd21dc6ed607447 (diff)
downloaduhd-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/lib/utils')
-rw-r--r--host/lib/utils/log.cpp6
-rw-r--r--host/lib/utils/log_c.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/utils/log.cpp b/host/lib/utils/log.cpp
index fa17d79e8..cf18e00c7 100644
--- a/host/lib/utils/log.cpp
+++ b/host/lib/utils/log.cpp
@@ -266,7 +266,7 @@ public:
__FILE__,
__LINE__,
"LOGGING",
- boost::this_thread::get_id());
+ std::this_thread::get_id());
final_message.message = "";
push(final_message);
# ifndef UHD_LOG_FASTPATH_DISABLE
@@ -482,7 +482,7 @@ private:
__FILE__,
__LINE__,
component,
- boost::this_thread::get_id());
+ std::this_thread::get_id());
log_msg.message = msg;
_log_queue.push_with_timed_wait(log_msg, 0.25);
}
@@ -506,7 +506,7 @@ uhd::_log::log::log(const uhd::log::severity_level verbosity,
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_it(verbosity >= log_rs().global_level)
{
if (_log_it) {
diff --git a/host/lib/utils/log_c.cpp b/host/lib/utils/log_c.cpp
index be08dbe01..932ab25ff 100644
--- a/host/lib/utils/log_c.cpp
+++ b/host/lib/utils/log_c.cpp
@@ -48,7 +48,7 @@ void UHD_API _uhd_log(const uhd_log_severity_level_t log_level,
filename,
unsigned(lineno),
component,
- boost::this_thread::get_id())
+ std::this_thread::get_id())
<< c_str;
} catch (...) {
}