#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 | HandleResponse (XRootDStatus *status, AnyObject *response) |
| virtual void | HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList) |
Protected Member Functions | |
| void | SetException (const XRootDStatus &err) |
Protected Attributes | |
| bool | fulfilled |
| std::promise< Response > | prms |
| promise that corresponds to the future | |
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.
Definition at line 452 of file XrdClOperationHandlers.hh.
|
inline |
Constructor, initializes the std::future argument from its own std::promise
| ftr | : the future to be linked with this handler |
Definition at line 462 of file XrdClOperationHandlers.hh.
References fulfilled, and prms.
Referenced by XrdCl::FutureWrapper< Response >::FutureWrapper().
|
inlinevirtual |
Destructor.
Definition at line 470 of file XrdClOperationHandlers.hh.
References XrdCl::errPipelineFailed, fulfilled, SetException(), and XrdCl::stError.
|
inlineprotected |
Set exception in the std::promise / std::future
| err | : the error |
Definition at line 482 of file XrdClOperationHandlers.hh.
References fulfilled, and prms.
Referenced by ~FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), and XrdCl::FutureWrapper< void >::HandleResponse().
|
protected |
Definition at line 493 of file XrdClOperationHandlers.hh.
Referenced by FutureWrapperBase(), ~FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), and SetException().
|
protected |
promise that corresponds to the future
Definition at line 492 of file XrdClOperationHandlers.hh.
Referenced by FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), and SetException().