diff options
author | Josh Blum <josh@joshknows.com> | 2012-02-08 14:24:17 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-02-08 14:24:17 -0800 |
commit | 122b9477c5e3a3f63789aeb1d3d8ae572ef2cec7 (patch) | |
tree | 9a32d8e7bc80e8544967e2b8e451cdccdf23ca71 | |
parent | ec58790efbcbea2732303b1980537aec1438ee03 (diff) | |
download | uhd-122b9477c5e3a3f63789aeb1d3d8ae572ef2cec7.tar.gz uhd-122b9477c5e3a3f63789aeb1d3d8ae572ef2cec7.tar.bz2 uhd-122b9477c5e3a3f63789aeb1d3d8ae572ef2cec7.zip |
windows: do not set process wide priority from thread prio
-rw-r--r-- | host/lib/utils/thread_priority.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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[] = { |