![]() |
XRootD
|
#include <XrdClOperationHandlers.hh>
Public Member Functions | |
FutureWrapperBase (std::future< Response > &ftr) | |
virtual | ~FutureWrapperBase () |
Destructor. | |
![]() | |
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 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 453 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 463 of file XrdClOperationHandlers.hh.
References fulfilled, and prms.
Referenced by XrdCl::FutureWrapper< Response >::FutureWrapper().
|
inlinevirtual |
Destructor.
Definition at line 471 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 483 of file XrdClOperationHandlers.hh.
References fulfilled, and prms.
Referenced by ~FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), and XrdCl::FutureWrapper< void >::HandleResponse().
|
protected |
Definition at line 494 of file XrdClOperationHandlers.hh.
Referenced by FutureWrapperBase(), ~FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), and SetException().
|
protected |
promise that corresponds to the future
Definition at line 493 of file XrdClOperationHandlers.hh.
Referenced by FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), and SetException().