USRP Hardware Driver and USRP Manual  Version: 4.3.0.0-1-g4d6b7263f
UHD and USRP Manual
thread_priority.h File Reference
#include <uhd/config.h>
#include <uhd/error.h>

Go to the source code of this file.

Functions

UHD_API uhd_error uhd_set_thread_priority (float priority, bool realtime)
 

Function Documentation

◆ uhd_set_thread_priority()

UHD_API uhd_error uhd_set_thread_priority ( float  priority,
bool  realtime 
)

Set the scheduling priority on the current thread.

A new thread or calling process should make this call with the defaults this to enable realtime scheduling.

A priority of zero corresponds to normal priority. Positive priority values are higher than normal. Negative priority values are lower than normal.

Parameters
prioritya value between -1 and 1
realtimetrue to use realtime mode
Returns
UHD error code