aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/include/uhd/utils/CMakeLists.txt1
-rw-r--r--host/lib/include/CMakeLists.txt4
-rw-r--r--host/lib/include/uhd/utils/atomic.hpp (renamed from host/include/uhd/utils/atomic.hpp)5
3 files changed, 5 insertions, 5 deletions
diff --git a/host/include/uhd/utils/CMakeLists.txt b/host/include/uhd/utils/CMakeLists.txt
index 85afc09bb..9c2fed964 100644
--- a/host/include/uhd/utils/CMakeLists.txt
+++ b/host/include/uhd/utils/CMakeLists.txt
@@ -9,7 +9,6 @@ UHD_INSTALL(FILES
algorithm.hpp
assert_has.hpp
assert_has.ipp
- atomic.hpp
byteswap.hpp
byteswap.ipp
cast.hpp
diff --git a/host/lib/include/CMakeLists.txt b/host/lib/include/CMakeLists.txt
index 5eea68f80..a688f4ea9 100644
--- a/host/lib/include/CMakeLists.txt
+++ b/host/lib/include/CMakeLists.txt
@@ -1,7 +1,7 @@
#
-# Copyright 2017 Ettus Research, a National Instruments Company
+# Copyright 2017 Ettus Research (National Instruments Corp.)
#
-# SPDX-License-Identifier: GPL-3.0
+# SPDX-License-Identifier: GPL-3.0+
#
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/host/include/uhd/utils/atomic.hpp b/host/lib/include/uhd/utils/atomic.hpp
index 4be416a30..86b1dddda 100644
--- a/host/include/uhd/utils/atomic.hpp
+++ b/host/lib/include/uhd/utils/atomic.hpp
@@ -9,6 +9,7 @@
#define INCLUDED_UHD_UTILS_ATOMIC_HPP
#include <uhd/config.hpp>
+#include <uhd/utils/system_time.hpp>
#include <uhd/types/time_spec.hpp>
#include <boost/thread/thread.hpp>
#include <atomic>
@@ -30,9 +31,9 @@ namespace uhd{
const double timeout
){
if (cond == value) return true;
- const time_spec_t exit_time = time_spec_t::get_system_time() + time_spec_t(timeout);
+ const time_spec_t exit_time = uhd::get_system_time() + time_spec_t(timeout);
while (cond != value) {
- if (time_spec_t::get_system_time() > exit_time) {
+ if (uhd::get_system_time() > exit_time) {
return false;
}
boost::this_thread::interruption_point();