| USRP Hardware Driver and USRP Manual Version: 4.9.0.makepkg-0-g9ec1f582 UHD and USRP Manual |

Loading...
Searching...
No Matches
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>
13#include <uhd/utils/noncopyable.hpp>
14#include <functional>
15#include <memory>
16#include <string>
17
18 namespace uhd {
19
20 class UHD_API task : uhd::noncopyable
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
uhd::task
Definition tasks.hpp:21
uhd::task::make
static sptr make(const task_fcn_type &task_fcn, const std::string &name="")
uhd::task::sptr
std::shared_ptr< task > sptr
Definition tasks.hpp:23
uhd::task::task_fcn_type
std::function< void(void)> task_fcn_type
Definition tasks.hpp:24
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
uhd
Definition build_info.hpp:12
uhd::noncopyable
boost::noncopyable noncopyable
Definition noncopyable.hpp:45
noncopyable.hpp