MapLibre Native Core
|
#include <work_task_impl.hpp>
Public Member Functions | |
WorkTaskImpl (F f, P p, std::shared_ptr< std::atomic< bool >> canceled_) | |
void | operator() () override |
void | cancel () override |
![]() | |
virtual | ~WorkTask ()=default |
template<class Fn , class... Args> | |
std::shared_ptr< WorkTask > | make (Fn &&fn, Args &&... args) |
Additional Inherited Members | |
![]() | |
template<class Fn , class... Args> | |
static std::shared_ptr< WorkTask > | make (Fn &&, Args &&...) |
Definition at line 11 of file work_task_impl.hpp.
|
inline |
Definition at line 13 of file work_task_impl.hpp.
|
inlineoverridevirtual |
If the task has not yet begun, this will cancel it. If the task is in progress, this will block until it completed. (Currently necessary because of shared state, but should be removed.) It will also cancel the after callback. If the task has completed, but the after callback has not executed, this will cancel the after callback. If the task has completed and the after callback has executed, this will do nothing.
Implements mbgl::WorkTask.
Definition at line 35 of file work_task_impl.hpp.
|
inlineoverridevirtual |
Implements mbgl::WorkTask.
Definition at line 19 of file work_task_impl.hpp.