#include <XrdCmsClientMsg.hh>
Definition at line 40 of file XrdCmsClientMsg.hh.
◆ XrdCmsClientMsg()
XrdCmsClientMsg::XrdCmsClientMsg |
( |
| ) |
|
|
inline |
◆ ~XrdCmsClientMsg()
XrdCmsClientMsg::~XrdCmsClientMsg |
( |
| ) |
|
|
inline |
◆ Alloc()
Definition at line 60 of file XrdCmsClientMsg.cc.
61{
63 int lclid;
64
65
66
67 FreeMsgQ.Lock();
68 if (nextfree) {mp = nextfree; nextfree = mp->next;}
70 lclid = nextid = (nextid + MidIncr) & IncMask;
71 numinQ++;
72 FreeMsgQ.UnLock();
73
74
75
77 mp->id = (mp->id & MidMask) | lclid;
78 mp->Resp = erp;
79 mp->next = 0;
80 mp->inwaitq = 1;
81
82
83
84 return mp;
85}
References XrdCmsClientMsg(), and XrdSysCondVar::Lock().
◆ getResult()
int XrdCmsClientMsg::getResult |
( |
| ) |
|
|
inline |
◆ ID()
int XrdCmsClientMsg::ID |
( |
| ) |
|
|
inline |
◆ Init()
int XrdCmsClientMsg::Init |
( |
| ) |
|
|
static |
◆ inQ()
int XrdCmsClientMsg::inQ |
( |
| ) |
|
|
inlinestatic |
◆ Lock()
void XrdCmsClientMsg::Lock |
( |
| ) |
|
|
inline |
◆ Recycle()
void XrdCmsClientMsg::Recycle |
( |
| ) |
|
Definition at line 118 of file XrdCmsClientMsg.cc.
119{
120 static XrdOucErrInfo dummyResp;
121
122
123
124
125 inwaitq = 0;
126 Resp = &dummyResp;
127 Hold.UnLock();
128
129
130
131 FreeMsgQ.Lock();
132 next = nextfree;
133 nextfree = this;
134 if (numinQ >= 0) numinQ--;
135 FreeMsgQ.UnLock();
136}
◆ Reply()
◆ UnLock()
void XrdCmsClientMsg::UnLock |
( |
| ) |
|
|
inline |
◆ Wait4Reply()
int XrdCmsClientMsg::Wait4Reply |
( |
int | wtime | ) |
|
|
inline |
The documentation for this class was generated from the following files: