Ciro Nishiguchi
60a70f7142
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.
2019-10-22 16:18:46 -07:00
Brent Stapleton
967be2a4e8
uhd: mpm: apply clang-format to all files
...
Applying formatting changes to all .cpp and .hpp files in the following
directories:
```
find host/examples/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/tests/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/utils/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find mpm/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Also formatted host/include/, except Cpp03 was used as a the language
standard instead of Cpp11.
```
sed -i 's/ Cpp11/ Cpp03/g' .clang-format
find host/include/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Formatting style was designated by the .clang-format file.
2019-01-16 11:40:23 -08:00
Brent Stapleton
601e0ed87b
examples: utils: skip formatting program options
...
Turning off clang formatting around the program option declarations.
clang-format makes them looks bad an unreadable because it thinks the
options are function calls or something.
2019-01-16 11:40:23 -08:00
Martin Braun
0303f1ed55
lib: Purge all references to boost::this_thread::sleep()
...
Replace with std::this_thread::sleep_for().
2018-04-30 17:10:26 -07:00
Martin Braun
ae5211d71d
uhd: Update license headers
...
All copyright is now attributed to "Ettus Research, a National
Instruments company".
SPDX headers were also updated to latest version 3.0.
2018-02-19 16:54:52 -08:00
Martin Braun
4f948e2c8b
Move all license headers to SPDX format.
2017-12-22 10:45:51 -08:00
ilovezfs
707db05b5a
Fix build with Boost 1.66
...
Thanks to FX Coudert for suggesting this fix.
2017-12-19 09:17:19 -08:00
Andrej Rode
c33928d2bb
utils: add set_thread_name API call, move thread_priority to thread
2017-06-29 13:43:05 -07:00
Andrej Rode
d2a354bbe4
uhd: cast thread_group.create_thread() return value to void to avoid memory leak
2017-04-25 17:15:13 -07:00
Martin Braun
cc6087f452
fixup! Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
...
Now also removes the namespaces in examples/
2016-11-15 16:31:18 -08:00
Nicholas Corgan
8f0f045cda
network_relay: added #include necessary for older versions of Boost on Windows
2013-12-05 08:46:22 -08:00
Ben Hilburn
9e47ad607b
Squashed merge of Coverity fixes.
2013-11-27 12:11:23 -08:00
Moritz Fischer
171e46cebe
examples & utils: return EXIT_FAILURE and EXIT_SUCCESS respectively
...
instead of 0 and 1.
2012-10-26 14:00:29 -07:00
Josh Blum
2cd4406994
examples: fix bsd compilation for network relay example
...
Fixes compilation on platforms that dont have one of the OS defines
by providing #else case for rx_dsp_buff_size constant.
This also makes OSX the special case and assumes other OS
can handle the large RX socket buffer size.
2012-04-01 22:12:47 -07:00
Josh Blum
dfaf1f930c
uhd: fixed some compile warnings for msvc
2012-02-28 13:20:58 -08:00
Josh Blum
bdb267b9f4
usrp2: added bind option to the relay
2011-12-20 17:13:28 -08:00
Josh Blum
bf575a8a4f
usrp2: more work on relay app and sequence error detection
2011-12-20 15:26:52 -08:00
Josh Blum
a6d3483bf9
usrp2: created network relay example app
2011-12-20 14:37:34 -08:00