Loading...
Searching...
No Matches
tasks.hpp
Go to the documentation of this file.
//
// Copyright 2011-2012 Ettus Research LLC
// Copyright 2017 Ettus Research (National Instruments Corp.)
// Copyright 2018 Ettus Research, a National Instruments Company
// Copyright 2019 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.hpp>
#include <uhd/utils/noncopyable.hpp>
#include <functional>
#include <memory>
#include <string>
namespace uhd {
class UHD_API task : uhd::noncopyable
{
public:
typedef std::shared_ptr<task> sptr;
typedef std::function<void(void)> task_fcn_type;
static sptr make(const task_fcn_type& task_fcn, const std::string& name = "");
};
} // 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