diff options
author | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-08-02 10:57:12 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-08-04 06:56:39 -0500 |
commit | cd0adcd43a6067ca8c9b717bc5d5d26f79738183 (patch) | |
tree | 54a9f6986fc08bd46a861a8cc97729173d93383c /.ci/uhd-pipeline.yml | |
parent | bb264b812a1b308bb73fb404cab3a90db30ca7c7 (diff) | |
download | uhd-cd0adcd43a6067ca8c9b717bc5d5d26f79738183.tar.gz uhd-cd0adcd43a6067ca8c9b717bc5d5d26f79738183.tar.bz2 uhd-cd0adcd43a6067ca8c9b717bc5d5d26f79738183.zip |
cal: Use safe version of set_thread_priority()
The calibration utilities attempt to bump the transmit thread priority to
realtime to prevent underruns. However, on platforms that use pthread,
`pthread_setschedparam()` typically requires elevated privileges. When
called without those privileges, the code path throws an exception that
is left unhandled, thus terminating the process with an unhelpful error
message.
This commit changes the thread priority function call to use a safe
version which catches any exceptions thrown by `pthread_setschedparam()`
and prints a much more instructive error message without terminating the
process. This gives the user a fighting chance to correct the issue and
successfully use the calibration utilities.
Diffstat (limited to '.ci/uhd-pipeline.yml')
0 files changed, 0 insertions, 0 deletions