diff options
author | Ciro Nishiguchi <ciro.nishiguchi@ni.com> | 2019-08-06 14:40:47 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-10-22 16:18:46 -0700 |
commit | 60a70f7142047b44cfec6d58ba77f5c7a81f1750 (patch) | |
tree | 445d5228ff98c985cdef4c9bd06e3595948aeace /host/examples/network_relay.cpp | |
parent | 14c5812fd773108a75f568d11d9ae4d833de1aeb (diff) | |
download | uhd-60a70f7142047b44cfec6d58ba77f5c7a81f1750.tar.gz uhd-60a70f7142047b44cfec6d58ba77f5c7a81f1750.tar.bz2 uhd-60a70f7142047b44cfec6d58ba77f5c7a81f1750.zip |
examples: remove thread priority elevation
Remove UHD call to elevate thread priority to realtime. Setting all
threads to the same realtime priority can cause the threads to not share
access to the network interface fairly, which adversely affects
operation of the worker threads in UHD.
Diffstat (limited to 'host/examples/network_relay.cpp')
-rw-r--r-- | host/examples/network_relay.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/host/examples/network_relay.cpp b/host/examples/network_relay.cpp index 464d2084d..bf2ac9255 100644 --- a/host/examples/network_relay.cpp +++ b/host/examples/network_relay.cpp @@ -128,7 +128,6 @@ private: void server_thread(void) { - uhd::set_thread_priority_safe(); std::cout << " entering server_thread..." << std::endl; wait_for_thread.notify_one(); // notify constructor that this thread has started std::vector<char> buff(insane_mtu); @@ -157,7 +156,6 @@ private: void client_thread(void) { - uhd::set_thread_priority_safe(); std::cout << " entering client_thread..." << std::endl; wait_for_thread.notify_one(); // notify constructor that this thread has started std::vector<char> buff(insane_mtu); @@ -188,8 +186,6 @@ private: **********************************************************************/ int UHD_SAFE_MAIN(int argc, char* argv[]) { - uhd::set_thread_priority_safe(); - // variables to be set by po std::string addr; std::string bind; |