libqi-api
2.8.7.4
|
#include <futuregroup.hpp>
Public Member Functions | |
~ScopedFutureGroup () | |
template<class T > | |
void | add (Future< T > future) |
void | cancelAll () |
bool | empty () const |
size_t | size () const |
![]() | |
Trackable () | |
Default constructor. More... | |
QI_API_DEPRECATED_MSG (Use default constructor instead) Trackable(ScopedFutureGroup *ptr) | |
~Trackable () | |
boost::weak_ptr < ScopedFutureGroup > | weakPtr () const |
void | wait () |
Additional Inherited Members | |
![]() | |
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 48 of file futuregroup.hpp.
|
inline |
Definition at line 74 of file futuregroup.hpp.
|
inline |
Definition at line 80 of file futuregroup.hpp.