From 931f3045924e8b326e36e338b5faad2cb5539ab8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 7 Feb 2020 10:35:39 -0800 Subject: thread: Fix formatting in thread utilities - Apply clang-format - Remove unnecessary boost::format --- host/include/uhd/utils/thread.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/utils/thread.hpp b/host/include/uhd/utils/thread.hpp index 9f71161d0..33c8c2aae 100644 --- a/host/include/uhd/utils/thread.hpp +++ b/host/include/uhd/utils/thread.hpp @@ -15,7 +15,7 @@ namespace uhd { -static const float default_thread_priority = float(0.5); +constexpr float DEFAULT_THREAD_PRIORITY = float(0.5); /*! * Set the scheduling priority on the current thread. @@ -34,7 +34,7 @@ static const float default_thread_priority = float(0.5); * \throw exception on set priority failure */ UHD_API void set_thread_priority( - float priority = default_thread_priority, bool realtime = true); + float priority = DEFAULT_THREAD_PRIORITY, bool realtime = true); /*! * Set the scheduling priority on the current thread. @@ -42,7 +42,7 @@ UHD_API void set_thread_priority( * \return true on success, false on failure */ UHD_API bool set_thread_priority_safe( - float priority = default_thread_priority, bool realtime = true); + float priority = DEFAULT_THREAD_PRIORITY, bool realtime = true); /*! * Set the thread name on the given boost thread. -- cgit v1.2.3