USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-g13c32cef
UHD and USRP Manual
tasks.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2011-2012 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 // Copyright 2017 Ettus Research (National Instruments Corp.)
5 //
6 // SPDX-License-Identifier: GPL-3.0-or-later
7 //
8 
9 #ifndef INCLUDED_UHD_UTILS_TASKS_HPP
10 #define INCLUDED_UHD_UTILS_TASKS_HPP
11 
12 #include <uhd/config.hpp>
13 #include <boost/shared_ptr.hpp>
14 #include <boost/function.hpp>
15 #include <boost/utility.hpp>
16 
17 namespace uhd{
18 
19  class UHD_API task : boost::noncopyable{
20  public:
21  typedef boost::shared_ptr<task> sptr;
22  typedef boost::function<void(void)> task_fcn_type;
23 
36  static sptr make(
37  const task_fcn_type &task_fcn,
38  const std::string &name=""
39  );
40  };
41 } //namespace uhd
42 
43 #endif /* INCLUDED_UHD_UTILS_TASKS_HPP */
44 
boost::shared_ptr< task > sptr
Definition: tasks.hpp:21
boost::function< void(void)> task_fcn_type
Definition: tasks.hpp:22
Definition: build_info.hpp:14
Definition: tasks.hpp:19
#define UHD_API
Definition: config.h:63