|
xrootd
|
#include <XrdClOperationHandlers.hh>


Public Member Functions | |
| FutureWrapperBase (std::future< Response > &ftr) | |
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 More... | |
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 |
|
inlineprotected |
Set exception in the std::promise / std::future
| err | : the error |
Referenced by XrdCl::FutureWrapper< Response >::HandleResponse(), and XrdCl::FutureWrapper< void >::HandleResponse().
|
protected |
promise that corresponds to the future
Referenced by XrdCl::FutureWrapperBase< void >::FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), XrdCl::FutureWrapper< void >::HandleResponse(), and XrdCl::FutureWrapperBase< void >::SetException().