From 122b9477c5e3a3f63789aeb1d3d8ae572ef2cec7 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 8 Feb 2012 14:24:17 -0800 Subject: windows: do not set process wide priority from thread prio --- host/lib/utils/thread_priority.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/host/lib/utils/thread_priority.cpp b/host/lib/utils/thread_priority.cpp index 699c5168a..7c3faa37a 100644 --- a/host/lib/utils/thread_priority.cpp +++ b/host/lib/utils/thread_priority.cpp @@ -77,10 +77,14 @@ static void check_priority_range(float priority){ void uhd::set_thread_priority(float priority, bool realtime){ check_priority_range(priority); + /* + * Process wide priority is no longer set. + * This is the responsibility of the application. //set the priority class on the process int pri_class = (realtime)? REALTIME_PRIORITY_CLASS : NORMAL_PRIORITY_CLASS; if (SetPriorityClass(GetCurrentProcess(), pri_class) == 0) throw uhd::os_error("error in SetPriorityClass"); + */ //scale the priority value to the constants int priorities[] = { -- cgit v1.2.3