diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-18 17:59:57 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-18 17:59:57 -0700 |
commit | 1c1d967ec73906d50ee6e7257a4153db4ab9c507 (patch) | |
tree | 6f7e9f2f8297990265081d1d71e35c8342e89211 /host/lib/thread_priority.cpp | |
parent | 2d7c3f4cc38627a8f0243b78c3c10adc6f1cda46 (diff) | |
download | uhd-1c1d967ec73906d50ee6e7257a4153db4ab9c507.tar.gz uhd-1c1d967ec73906d50ee6e7257a4153db4ab9c507.tar.bz2 uhd-1c1d967ec73906d50ee6e7257a4153db4ab9c507.zip |
usrp2: init clock rate shadows for dboard iface, uhd: pthread sched fix error condition check
Diffstat (limited to 'host/lib/thread_priority.cpp')
-rw-r--r-- | host/lib/thread_priority.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/thread_priority.cpp b/host/lib/thread_priority.cpp index 30b184123..c35e5fcb1 100644 --- a/host/lib/thread_priority.cpp +++ b/host/lib/thread_priority.cpp @@ -58,7 +58,7 @@ static void check_priority_range(float priority){ sched_param sp; sp.sched_priority = int(priority*(max_pri - min_pri)) + min_pri; int ret = pthread_setschedparam(pthread_self(), policy, &sp); - if (ret == -1) throw std::runtime_error("error in pthread_setschedparam"); + if (ret != 0) throw std::runtime_error("error in pthread_setschedparam"); } /*********************************************************************** |