USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
thread.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010,2017 Ettus Research LLC
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_UHD_UTILS_THREAD_HPP
8 #define INCLUDED_UHD_UTILS_THREAD_HPP
9 
10 #include <uhd/config.hpp>
11 #include <boost/thread/thread.hpp>
12 #include <string>
13 
14 namespace uhd{
15 
16  static const float default_thread_priority = float(0.5);
17 
33  float priority = default_thread_priority,
34  bool realtime = true
35  );
36 
43  float priority = default_thread_priority,
44  bool realtime = true
45  );
46 
53  boost::thread *thread,
54  const std::string &name
55  );
56 
57 } //namespace uhd
58 
59 #endif /* INCLUDED_UHD_UTILS_THREAD_HPP */
UHD_API bool set_thread_priority_safe(float priority=default_thread_priority, bool realtime=true)
Definition: build_info.hpp:14
UHD_API void set_thread_name(boost::thread *thread, const std::string &name)
#define UHD_API
Definition: config.h:62
UHD_API void set_thread_priority(float priority=default_thread_priority, bool realtime=true)