Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes

XrdOdcMsg Class Reference

#include <XrdOdcMsg.hh>

Collaboration diagram for XrdOdcMsg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int ID ()
void Lock ()
void Recycle ()
void UnLock ()
int Wait4Reply (int wtime)
 XrdOdcMsg ()
 ~XrdOdcMsg ()

Static Public Member Functions

static XrdOdcMsgAlloc (XrdOucErrInfo *erp)
static int Init ()
static int mapError (const char *ecode)
static int Reply (int msgid, char *reply)

Static Private Member Functions

static XrdOdcMsgRemFromWaitQ (int msgid)

Private Attributes

XrdOdcMsgnext
XrdSysCondVar Hold
int inwaitq
int id
XrdOucErrInfoResp

Static Private Attributes

static int nextid = 0
static XrdOdcMsgmsgTab = 0
static XrdOdcMsgnextfree = 0
static XrdSysMutex FreeMsgQ

Constructor & Destructor Documentation

XrdOdcMsg::XrdOdcMsg (  )  [inline]

References inwaitq, next, and Resp.

XrdOdcMsg::~XrdOdcMsg (  )  [inline]

Member Function Documentation

XrdOdcMsg * XrdOdcMsg::Alloc ( XrdOucErrInfo erp  )  [static]
int XrdOdcMsg::ID (  )  [inline]

References id.

Referenced by XrdOdcFinderRMT::send2Man().

int XrdOdcMsg::Init (  )  [static]

References id, msgTab, next, nextfree, nextid, and XRDODC_MAXMSGS.

Referenced by XrdOdcConfig::Configure().

void XrdOdcMsg::Lock (  )  [inline]

References Hold, and XrdSysCondVar::Lock().

int XrdOdcMsg::mapError ( const char *  ecode  )  [static]

Referenced by XrdOdcResp::Reply(), and Reply().

void XrdOdcMsg::Recycle ( void   ) 
XrdOdcMsg * XrdOdcMsg::RemFromWaitQ ( int  msgid  )  [static, private]
int XrdOdcMsg::Reply ( int  msgid,
char *  reply 
) [static]
void XrdOdcMsg::UnLock (  )  [inline]

References Hold, and XrdSysCondVar::UnLock().

int XrdOdcMsg::Wait4Reply ( int  wtime  )  [inline]

References Hold, and XrdSysCondVar::Wait().

Referenced by XrdOdcFinderRMT::send2Man().


Member Data Documentation

XrdSysMutex XrdOdcMsg::FreeMsgQ [static, private]

Referenced by Alloc(), and Recycle().

int XrdOdcMsg::id [private]

Referenced by Alloc(), ID(), and Init().

int XrdOdcMsg::inwaitq [private]
XrdOdcMsg * XrdOdcMsg::msgTab = 0 [static, private]

Referenced by Init(), and RemFromWaitQ().

Referenced by Alloc(), Init(), Recycle(), and XrdOdcMsg().

XrdOdcMsg * XrdOdcMsg::nextfree = 0 [static, private]

Referenced by Alloc(), Init(), and Recycle().

int XrdOdcMsg::nextid = 0 [static, private]

Referenced by Alloc(), and Init().

Referenced by Alloc(), Recycle(), Reply(), and XrdOdcMsg().


The documentation for this class was generated from the following files: