AUI Framework
develop
Cross-platform base for C++ UI apps
|
Holds a set of futures keeping them valid. More...
#include <AUI/Thread/AAsyncHolder.h>
Public Member Functions | |
template<typename T> | |
AAsyncHolder & | operator<< (AFuture< T > future) |
std::size_t | size () const |
void | waitForAll () |
Holds a set of futures keeping them valid.
Unlike AFutureSet, AAsyncHolder is intended to hold void futures (AFuture<void>), however, non-void types can be also supported (but with extra overhead). When AFuture's task is complete, the AFuture is removed from AAsyncHolder.
Guarantees that held futures will never be executed or be during execution after AAsyncHolder is destroyed.
Cancels all futures in destructor.