#include <XrdCmsClientMsg.hh>
Definition at line 40 of file XrdCmsClientMsg.hh.
◆ XrdCmsClientMsg()
XrdCmsClientMsg::XrdCmsClientMsg |
( |
| ) |
|
|
inline |
Definition at line 64 of file XrdCmsClientMsg.hh.
64: Hold(0) {next = 0; inwaitq = 0; Resp = 0; Result = 0;}
◆ ~XrdCmsClientMsg()
XrdCmsClientMsg::~XrdCmsClientMsg |
( |
| ) |
|
|
inline |
◆ Alloc()
Definition at line 60 of file XrdCmsClientMsg.cc.
61{
63 int lclid;
64
65
66
68 if (nextfree) {mp = nextfree; nextfree = mp->next;}
70 lclid = nextid = (nextid + MidIncr) & IncMask;
71 numinQ++;
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 XrdSysCondVar::Lock(), XrdSysMutex::Lock(), and XrdSysMutex::UnLock().
◆ getResult()
int XrdCmsClientMsg::getResult |
( |
| ) |
|
|
inline |
◆ ID()
int XrdCmsClientMsg::ID |
( |
| ) |
|
|
inline |
◆ Init()
int XrdCmsClientMsg::Init |
( |
| ) |
|
|
static |
Definition at line 91 of file XrdCmsClientMsg.cc.
92{
93 int i;
95
96
97
99 msgTab = &msgp[0];
100 nextid = MaxMsgs;
101
102
103
104 for (i = 0; i < MaxMsgs; i++)
105 {msgp->next = nextfree; nextfree = msgp; msgp->id = i; msgp++;}
106
107
108
109 return 0;
110}
Referenced by XrdCmsClientConfig::Configure().
◆ inQ()
static int XrdCmsClientMsg::inQ |
( |
| ) |
|
|
inlinestatic |
◆ Lock()
void XrdCmsClientMsg::Lock |
( |
| ) |
|
|
inline |
◆ Recycle()
void XrdCmsClientMsg::Recycle |
( |
| ) |
|
◆ Reply()
◆ UnLock()
void XrdCmsClientMsg::UnLock |
( |
| ) |
|
|
inline |
◆ Wait4Reply()
int XrdCmsClientMsg::Wait4Reply |
( |
int | wtime | ) |
|
|
inline |
The documentation for this class was generated from the following files: