ModErn Text Analysis
META Enumerates Textual Applications
|
A concrete task is templated with a result type. More...
Public Member Functions | |
template<class Function > | |
concrete_task (const Function &f) | |
Constructs a new concrete task. More... | |
virtual | ~concrete_task ()=default |
Virtual destructor to support deletion from base pointers. | |
virtual void | run () override |
Runs the given task. | |
std::future< R > | get_future () |
Public Member Functions inherited from meta::parallel::thread_pool::task | |
virtual | ~task ()=default |
Virtual destructor to support deletion from base pointers. | |
Public Attributes | |
std::packaged_task< R()> | task_ |
the internal task representation | |
A concrete task is templated with a result type.
|
inline |
Constructs a new concrete task.
f | The function to run. |
|
inline |