xrootd
|
Synchronize the response. More...
#include <XrdClMessageUtils.hh>
Public Member Functions | |
SyncResponseHandler () | |
Constructor. | |
virtual | ~SyncResponseHandler () |
Destructor. | |
virtual void | HandleResponse (XRootDStatus *status, AnyObject *response) |
Handle the response. | |
XRootDStatus * | GetStatus () |
Get the status. | |
AnyObject * | GetResponse () |
Get the response. | |
void | WaitForResponse () |
Wait for the arrival of the response. | |
Public Member Functions inherited from XrdCl::ResponseHandler | |
virtual | ~ResponseHandler () |
virtual void | HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList) |
Private Member Functions | |
SyncResponseHandler (const SyncResponseHandler &other) | |
SyncResponseHandler & | operator= (const SyncResponseHandler &other) |
Private Attributes | |
XRootDStatus * | pStatus |
AnyObject * | pResponse |
XrdSysCondVar | pCondVar |
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) |
Synchronize the response.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
private |
|
inline |
|
inline |
Get the status.
References pStatus.
Referenced by XrdCl::MessageUtils::WaitForResponse(), and XrdCl::MessageUtils::WaitForStatus().
|
inlinevirtual |
Handle the response.
Reimplemented from XrdCl::ResponseHandler.
References XrdSysCondVar::Broadcast(), pCondVar, pResponse, and pStatus.
|
private |
|
inline |
Wait for the arrival of the response.
References pCondVar, pStatus, and XrdSysCondVar::Wait().
Referenced by XrdCl::MessageUtils::WaitForResponse(), and XrdCl::MessageUtils::WaitForStatus().
|
private |
Referenced by HandleResponse(), and WaitForResponse().
|
private |
Referenced by GetResponse(), and HandleResponse().
|
private |
Referenced by GetStatus(), HandleResponse(), and WaitForResponse().