|
xrootd
|
#include <XrdClOperationHandlers.hh>


Public Member Functions | |
| FutureWrapperBase (std::future< Response > &ftr) | |
| ~FutureWrapperBase () | |
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... | |
| bool | called |
| true if the handler has been called, false otherwise 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 |
|
inline |
Destructor
If the handler was not called sets an exception in the promise
|
inlineprotected |
Set exception in the std::promise / std::future
| err | : the error |
Referenced by XrdCl::FutureWrapper< Response >::HandleResponse(), XrdCl::FutureWrapper< void >::HandleResponse(), and XrdCl::FutureWrapperBase< void >::~FutureWrapperBase().
|
protected |
true if the handler has been called, false otherwise
Referenced by XrdCl::FutureWrapper< Response >::HandleResponse(), XrdCl::FutureWrapper< void >::HandleResponse(), and XrdCl::FutureWrapperBase< void >::~FutureWrapperBase().
|
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().
1.8.5