diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-02-07 10:35:39 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-02-10 10:19:26 -0600 |
commit | 931f3045924e8b326e36e338b5faad2cb5539ab8 (patch) | |
tree | 4f2260d4174c0267c60f9716156d5388afc82788 /host/include | |
parent | d1458a2cf3a735c21cc61080b21f0b46eea22d44 (diff) | |
download | uhd-931f3045924e8b326e36e338b5faad2cb5539ab8.tar.gz uhd-931f3045924e8b326e36e338b5faad2cb5539ab8.tar.bz2 uhd-931f3045924e8b326e36e338b5faad2cb5539ab8.zip |
thread: Fix formatting in thread utilities
- Apply clang-format
- Remove unnecessary boost::format
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/utils/thread.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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. |