USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-2+b1
UHD and USRP Manual
tasks.hpp
Go to the documentation of this file.
1
//
2
// Copyright 2011-2012 Ettus Research LLC
3
// Copyright 2018 Ettus Research, a National Instruments Company
4
// Copyright 2017 Ettus Research (National Instruments Corp.)
5
//
6
// SPDX-License-Identifier: GPL-3.0-or-later
7
//
8
9
#ifndef INCLUDED_UHD_UTILS_TASKS_HPP
10
#define INCLUDED_UHD_UTILS_TASKS_HPP
11
12
#include <
uhd/config.hpp
>
13
#include <
uhd/utils/noncopyable.hpp
>
14
#include <boost/function.hpp>
15
#include <boost/shared_ptr.hpp>
16
#include <boost/utility.hpp>
17
18
namespace
uhd
{
19
20
class
UHD_API
task
:
uhd::noncopyable
21
{
22
public
:
23
typedef
boost::shared_ptr<task>
sptr
;
24
typedef
boost::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
41
42
#endif
/* INCLUDED_UHD_UTILS_TASKS_HPP */
config.hpp
uhd::task::sptr
boost::shared_ptr< task > sptr
Definition:
tasks.hpp:23
uhd::task::task_fcn_type
boost::function< void(void)> task_fcn_type
Definition:
tasks.hpp:24
UHD_API
#define UHD_API
Definition:
config.h:68
noncopyable.hpp
uhd
Definition:
build_info.hpp:13
uhd::noncopyable
boost::noncopyable noncopyable
Definition:
noncopyable.hpp:46
uhd::task
Definition:
tasks.hpp:20
include
uhd
utils
tasks.hpp
Generated by
1.8.16