USRP Hardware Driver and USRP Manual  Version: 4.4.0.HEAD-0-g5fac246b
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 // Copyright 2018 Ettus Research, a National Instruments Company
5 // Copyright 2019 Ettus Research, a National Instruments Brand
6 //
7 // SPDX-License-Identifier: GPL-3.0-or-later
8 //
9 
10 #pragma once
11 
12 #include <uhd/config.hpp>
14 #include <functional>
15 #include <memory>
16 #include <string>
17 
18 namespace uhd {
19 
21 {
22 public:
23  typedef std::shared_ptr<task> sptr;
24  typedef std::function<void(void)> task_fcn_type;
25 
38  static sptr make(const task_fcn_type& task_fcn, const std::string& name = "");
39 };
40 } // namespace uhd
config.hpp
uhd::task::sptr
std::shared_ptr< task > sptr
Definition: tasks.hpp:23
UHD_API
#define UHD_API
Definition: config.h:87
noncopyable.hpp
uhd
Definition: build_info.hpp:12
uhd::task::task_fcn_type
std::function< void(void)> task_fcn_type
Definition: tasks.hpp:24
uhd::noncopyable
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
uhd::task
Definition: tasks.hpp:20