diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-16 19:18:06 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-16 19:18:06 -0700 |
commit | 339aa3ccd4a50de5e259078635ddbcd552fff22f (patch) | |
tree | a2b3da46de6de1d5a9684d82ae99e1e70a2c0986 /host/examples | |
parent | 168ab7279cec925e3db3e943e35d0d2bd220d8b3 (diff) | |
download | uhd-339aa3ccd4a50de5e259078635ddbcd552fff22f.tar.gz uhd-339aa3ccd4a50de5e259078635ddbcd552fff22f.tar.bz2 uhd-339aa3ccd4a50de5e259078635ddbcd552fff22f.zip |
uhd: working windows implementation of thread priority setting, added called to example apps
Diffstat (limited to 'host/examples')
-rw-r--r-- | host/examples/rx_timed_samples.cpp | 3 | ||||
-rw-r--r-- | host/examples/tx_timed_samples.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp index 64da260d5..6920b34d1 100644 --- a/host/examples/rx_timed_samples.cpp +++ b/host/examples/rx_timed_samples.cpp @@ -15,6 +15,7 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. // +#include <uhd/utils/thread_priority.hpp> #include <uhd/utils/safe_main.hpp> #include <uhd/usrp/simple_usrp.hpp> #include <boost/program_options.hpp> @@ -25,6 +26,8 @@ namespace po = boost::program_options; int UHD_SAFE_MAIN(int argc, char *argv[]){ + uhd::set_thread_priority_safe(); + //variables to be set by po std::string args; int seconds_in_future; diff --git a/host/examples/tx_timed_samples.cpp b/host/examples/tx_timed_samples.cpp index e9e0c785e..28fd2ee67 100644 --- a/host/examples/tx_timed_samples.cpp +++ b/host/examples/tx_timed_samples.cpp @@ -15,6 +15,7 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. // +#include <uhd/utils/thread_priority.hpp> #include <uhd/utils/safe_main.hpp> #include <uhd/usrp/simple_usrp.hpp> #include <boost/program_options.hpp> @@ -25,6 +26,8 @@ namespace po = boost::program_options; int UHD_SAFE_MAIN(int argc, char *argv[]){ + uhd::set_thread_priority_safe(); + //variables to be set by po std::string args; int seconds_in_future; |