diff options
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. |