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/exception.hpp>
|
2020-03-02 23:25:13 +00:00
|
|
|
#include <uhd/utils/log.hpp>
|
|
|
|
|
#include <uhd/utils/thread.hpp>
|
|
|
|
|
#include <uhd/utils/thread_priority.h>
|
2015-08-06 17:42:23 +00:00
|
|
|
#include <boost/format.hpp>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
2020-03-02 23:25:13 +00:00
|
|
|
uhd_error uhd_set_thread_priority(float priority, bool realtime)
|
|
|
|
|
{
|
|
|
|
|
UHD_SAFE_C(uhd::set_thread_priority(priority, realtime);)
|
2015-08-06 17:42:23 +00:00
|
|
|
}
|