XRootD
Loading...
Searching...
No Matches
XrdSsiResponder.cc File Reference
Include dependency graph for XrdSsiResponder.cc:

Go to the source code of this file.

Macros

#define SSI_VAL_RESPONSE
#define SSI_XEQ_RESPONSE

Macro Definition Documentation

◆ SSI_VAL_RESPONSE

#define SSI_VAL_RESPONSE
Value:
spMutex.Lock();\
if (!reqP)\
{spMutex.UnLock(); return notActive;}\
reqP->rrMutex->Lock();\
if (reqP->theRespond != this)\
{reqP->rrMutex->UnLock(); spMutex.UnLock();\
return notActive;\
}\
if (reqP->Resp.rType)\
{reqP->rrMutex->UnLock(); spMutex.UnLock();\
return notPosted;\
}

Definition at line 38 of file XrdSsiResponder.cc.

38#define SSI_VAL_RESPONSE spMutex.Lock();\
39 if (!reqP)\
40 {spMutex.UnLock(); return notActive;}\
41 reqP->rrMutex->Lock();\
42 if (reqP->theRespond != this)\
43 {reqP->rrMutex->UnLock(); spMutex.UnLock();\
44 return notActive;\
45 }\
46 if (reqP->Resp.rType)\
47 {reqP->rrMutex->UnLock(); spMutex.UnLock();\
48 return notPosted;\
49 }

Referenced by XrdSsiResponder::SetErrResponse(), XrdSsiResponder::SetResponse(), XrdSsiResponder::SetResponse(), and XrdSsiResponder::SetResponse().

◆ SSI_XEQ_RESPONSE

#define SSI_XEQ_RESPONSE
Value:
if (reqP->onClient)\
{XrdSsiRequest *rX = reqP;\
reqP->rrMutex->UnLock(); spMutex.UnLock();\
return (rX->ProcessResponse(rX->errInfo,rX->Resp)\
? wasPosted : notActive);\
} else {\
bool isOK = reqP->ProcessResponse(reqP->errInfo,\
reqP->Resp);\
reqP->rrMutex->UnLock(); spMutex.UnLock();\
return (isOK ? wasPosted : notActive);\
}
virtual bool ProcessResponse(const XrdSsiErrInfo &eInfo, const XrdSsiRespInfo &rInfo)=0

Definition at line 51 of file XrdSsiResponder.cc.

51#define SSI_XEQ_RESPONSE if (reqP->onClient)\
52 {XrdSsiRequest *rX = reqP;\
53 reqP->rrMutex->UnLock(); spMutex.UnLock();\
54 return (rX->ProcessResponse(rX->errInfo,rX->Resp)\
55 ? wasPosted : notActive);\
56 } else {\
57 bool isOK = reqP->ProcessResponse(reqP->errInfo,\
58 reqP->Resp);\
59 reqP->rrMutex->UnLock(); spMutex.UnLock();\
60 return (isOK ? wasPosted : notActive);\
61 }

Referenced by XrdSsiResponder::SetErrResponse(), XrdSsiResponder::SetResponse(), XrdSsiResponder::SetResponse(), and XrdSsiResponder::SetResponse().