#include <work_task.hpp>
|
template<class Fn , class... Args> |
static std::shared_ptr< WorkTask > | make (Fn &&, Args &&...) |
|
A movable type-erasing function wrapper. This allows to store arbitrary invokable things (like std::function<>, or the result of a movable-only std::bind()) in the queue. Source: http://stackoverflow.com/a/29642072/331379
Definition at line 12 of file work_task.hpp.
◆ ~WorkTask()
virtual mbgl::WorkTask::~WorkTask |
( |
| ) |
|
|
virtualdefault |
◆ cancel()
virtual void mbgl::WorkTask::cancel |
( |
| ) |
|
|
pure virtual |
◆ make() [1/2]
template<class Fn , class... Args>
static std::shared_ptr<WorkTask> mbgl::WorkTask::make |
( |
Fn && |
, |
|
|
Args && |
... |
|
) |
| |
|
static |
◆ make() [2/2]
template<class Fn , class... Args>
std::shared_ptr<WorkTask> mbgl::WorkTask::make |
( |
Fn && |
fn, |
|
|
Args &&... |
args |
|
) |
| |
◆ operator()()
virtual void mbgl::WorkTask::operator() |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files:
- /home/runner/work/maplibre-native/maplibre-native/include/mbgl/util/work_task.hpp
- /home/runner/work/maplibre-native/maplibre-native/include/mbgl/util/work_task_impl.hpp