2015-08-06 17:42:23 +00:00
|
|
|
//
|
|
|
|
|
// Copyright 2015 Ettus Research LLC
|
2018-02-19 23:30:32 +00:00
|
|
|
// Copyright 2018 Ettus Research, a National Instruments Company
|
2015-08-06 17:42:23 +00:00
|
|
|
//
|
2018-02-19 23:30:32 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2015-08-06 17:42:23 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#include <uhd/error.h>
|
|
|
|
|
#include <uhd/utils/thread_priority.h>
|
2017-04-18 23:46:44 +00:00
|
|
|
#include <uhd/utils/thread.hpp>
|
2017-02-08 00:37:25 +00:00
|
|
|
#include <uhd/utils/log.hpp>
|
2015-08-06 17:42:23 +00:00
|
|
|
#include <uhd/exception.hpp>
|
|
|
|
|
#include <boost/format.hpp>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
uhd_error uhd_set_thread_priority(
|
|
|
|
|
float priority,
|
|
|
|
|
bool realtime
|
|
|
|
|
){
|
|
|
|
|
UHD_SAFE_C(
|
|
|
|
|
uhd::set_thread_priority(priority, realtime);
|
|
|
|
|
)
|
|
|
|
|
}
|