AUI Framework
develop
Cross-platform base for C++ UI apps
|
Shared completion marker for multithreaded callback-based future handling. More...
#include <AUI/Util/ASharedRaiiHelper.h>
Static Public Member Functions | |
static _< ASharedRaiiHelper > | make (std::function< void()> callback) |
Shared completion marker for multithreaded callback-based future handling.
ASharedRaiiHelper is intended to track the completion of multiple futures, exploiting the destruction of AFuture::onSuccess or AFuture::onError callbacks when they called. This approach allows to easily integrate ASharedRaiiHelper to the existing code.
Note that the callback will be called even if onSuccess is not.