xrootd
|
#include <XrdClOperationHandlers.hh>
Public Member Functions | |
FutureWrapperBase (std::future< Response > &ftr) | |
virtual | ~FutureWrapperBase () |
Destructor. | |
Public Member Functions inherited from XrdCl::ResponseHandler | |
virtual | ~ResponseHandler () |
virtual void | HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList) |
virtual void | HandleResponse (XRootDStatus *status, AnyObject *response) |
Protected Member Functions | |
void | SetException (const XRootDStatus &err) |
Protected Attributes | |
std::promise< Response > | prms |
promise that corresponds to the future | |
bool | fulfilled |
Additional Inherited Members | |
Static Public Member Functions inherited from XrdCl::ResponseHandler | |
static ResponseHandler * | Wrap (std::function< void(XRootDStatus &, AnyObject &)> func) |
static ResponseHandler * | Wrap (std::function< void(XRootDStatus *, AnyObject *)> func) |
A wrapper handler for a std::promise / std::future.
|
inline |
Constructor, initializes the std::future argument from its own std::promise
ftr | : the future to be linked with this handler |
References XrdCl::FutureWrapperBase< Response >::prms.
|
inlinevirtual |
|
inlineprotected |
Set exception in the std::promise / std::future
err | : the error |
References XrdCl::FutureWrapperBase< Response >::fulfilled, and XrdCl::FutureWrapperBase< Response >::prms.
Referenced by XrdCl::FutureWrapper< Response >::HandleResponse(), XrdCl::FutureWrapper< void >::HandleResponse(), and XrdCl::FutureWrapperBase< Response >::~FutureWrapperBase().
|
protected |
|
protected |
promise that corresponds to the future
Referenced by XrdCl::FutureWrapperBase< Response >::FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), XrdCl::FutureWrapper< void >::HandleResponse(), and XrdCl::FutureWrapperBase< Response >::SetException().