|
libqi-api
2.4.3.28
|
#include <futuregroup.hpp>
Public Member Functions | |
| ScopedFutureGroup () | |
| ~ScopedFutureGroup () | |
| template<class T > | |
| void | add (Future< T > future) |
| void | cancelAll () |
| bool | empty () const |
| size_t | size () const |
Public Member Functions inherited from qi::Trackable< ScopedFutureGroup > | |
| Trackable (ScopedFutureGroup *ptr) | |
| Default constructor. More... | |
| ~Trackable () | |
| Default destructor. More... | |
| boost::shared_ptr < ScopedFutureGroup > | lock () |
| boost::weak_ptr < ScopedFutureGroup > | weakPtr () |
| void | wait () |
Additional Inherited Members | |
Protected Member Functions inherited from qi::Trackable< ScopedFutureGroup > | |
| void | destroy () |
Cancel a group of unfinished registered futures on destruction. Guarantees that the registered set of futures will be canceled whatever the reason of the destruction of the group.
Definition at line 19 of file futuregroup.hpp.
|
inline |
Definition at line 24 of file futuregroup.hpp.
|
inline |
Destructor, cancel all unfinished futures registered.
Definition at line 30 of file futuregroup.hpp.
|
inline |
Register a future to be canceled if not finished when this object is destroyed, or if cancelAll() is called. Futures finishing before cancelation will be automatically unregistered. Non-cancelable futures will be ignored.
| future | Future to register. |
Definition at line 43 of file futuregroup.hpp.
|
inline |
Cancel all registered futures and unregister them.
Definition at line 62 of file futuregroup.hpp.
|
inline |
Definition at line 89 of file futuregroup.hpp.
|
inline |
Definition at line 96 of file futuregroup.hpp.