USRP Hardware Driver and USRP Manual Version: 4.1.0.3
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
18namespace uhd {
19
21{
22public:
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
Definition: tasks.hpp:21
static sptr make(const task_fcn_type &task_fcn, const std::string &name="")
std::shared_ptr< task > sptr
Definition: tasks.hpp:23
std::function< void(void)> task_fcn_type
Definition: tasks.hpp:24
#define UHD_API
Definition: config.h:70
Definition: build_info.hpp:12
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45