USRP Hardware Driver and USRP Manual
Version: 004.000.000.HEAD-0-g8773fb2c
UHD and USRP Manual
thread_priority.h
Go to the documentation of this file.
1
//
2
// Copyright 2015 Ettus Research LLC
3
//
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
//
17
18
#ifndef INCLUDED_UHD_UTILS_THREAD_PRIORITY_H
19
#define INCLUDED_UHD_UTILS_THREAD_PRIORITY_H
20
21
#include <
uhd/config.h
>
22
#include <
uhd/error.h
>
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
static
const
float
uhd_default_thread_priority = 0.5;
29
44
UHD_API
uhd_error
uhd_set_thread_priority
(
45
float
priority,
46
bool
realtime
47
);
48
49
#ifdef __cplusplus
50
}
51
#endif
52
53
#endif
/* INCLUDED_UHD_UTILS_THREAD_PRIORITY_H */
config.h
error.h
uhd_error
uhd_error
UHD error codes.
Definition:
error.h:31
UHD_API
#define UHD_API
Definition:
config.h:73
uhd_set_thread_priority
UHD_API uhd_error uhd_set_thread_priority(float priority, bool realtime)
include
uhd
utils
thread_priority.h
Generated by
1.8.13