USRP Hardware Driver and USRP Manual  Version: 4.6.0.0
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
std::shared_ptr< task > sptr
Definition: tasks.hpp:23
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
Definition: build_info.hpp:12
Definition: tasks.hpp:20
std::function< void(void)> task_fcn_type
Definition: tasks.hpp:24
#define UHD_API
Definition: config.h:87