An implementation of an asynchronous deferred callback executor.
|
| ParallelTask (ctpl::thread_pool &_pool) |
|
bool | dispatch () override |
| Dispatch the registered callbacks and returns their joint result.
|
|
virtual | ~FutureTask ()=default |
| Virtual destructor.
|
|
template<typename Fn , typename... Args> |
void | add (Fn &&fn, Args &&... args) |
| Register a deferred callback given a free function.
|
|
template<typename T , typename Fn , typename... Args> |
void | add (T *p, Fn &&fn, Args &&... args) |
| Register a deferred callback given a generic class instance.
|
|
unsigned int | size () const |
| Get the number of registered deferred callbacks.
|
|
void | clear () |
| Clear internal list of deferred callbacks.
|
|
|
std::vector< std::function< bool(int)> > | deferreds |
|
The documentation for this class was generated from the following file:
- libraries/YarpDeviceMapperLib/FutureTask.cpp