|
libqi-api
release-2.5.3-2016-11-18
|
#include <futuregroup.hpp>
Public Member Functions | |
| ~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 () | |
| Default constructor. More... | |
| QI_API_DEPRECATED_MSG (Use default constructor instead) Trackable(ScopedFutureGroup *ptr) | |
| ~Trackable () | |
| 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 20 of file futuregroup.hpp.
|
inline |
Destructor, cancel all unfinished futures registered.
Definition at line 27 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 40 of file futuregroup.hpp.
|
inline |
Cancel all registered futures and unregister them.
Definition at line 51 of file futuregroup.hpp.
|
inline |
Definition at line 78 of file futuregroup.hpp.
|
inline |
Definition at line 85 of file futuregroup.hpp.