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