USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-2+b1
UHD and USRP Manual
thread.hpp
Go to the documentation of this file.
1
//
2
// Copyright 2010,2017 Ettus Research LLC
3
// Copyright 2018 Ettus Research, a National Instruments Company
4
//
5
// SPDX-License-Identifier: GPL-3.0-or-later
6
//
7
8
#ifndef INCLUDED_UHD_UTILS_THREAD_HPP
9
#define INCLUDED_UHD_UTILS_THREAD_HPP
10
11
#include <
uhd/config.hpp
>
12
#include <boost/thread/thread.hpp>
13
#include <string>
14
15
namespace
uhd
{
16
17
static
const
float
default_thread_priority = float(0.5);
18
33
UHD_API
void
set_thread_priority
(
34
float
priority = default_thread_priority,
bool
realtime =
true
);
35
41
UHD_API
bool
set_thread_priority_safe
(
42
float
priority = default_thread_priority,
bool
realtime =
true
);
43
49
UHD_API
void
set_thread_name
(boost::thread* thread,
const
std::string& name);
50
51
}
// namespace uhd
52
53
#endif
/* INCLUDED_UHD_UTILS_THREAD_HPP */
config.hpp
uhd::set_thread_name
UHD_API void set_thread_name(boost::thread *thread, const std::string &name)
UHD_API
#define UHD_API
Definition:
config.h:68
uhd
Definition:
build_info.hpp:13
uhd::set_thread_priority
UHD_API void set_thread_priority(float priority=default_thread_priority, bool realtime=true)
uhd::set_thread_priority_safe
UHD_API bool set_thread_priority_safe(float priority=default_thread_priority, bool realtime=true)
include
uhd
utils
thread.hpp
Generated by
1.8.16