XRootD
XrdOfsHanPsc Class Reference
+ Collaboration diagram for XrdOfsHanPsc:

Public Member Functions

 XrdOfsHanPsc ()
 
 ~XrdOfsHanPsc ()
 
void Recycle ()
 

Static Public Member Functions

static XrdOfsHanPscAlloc ()
 

Public Attributes

union {
XrdOfsHanPscNext
 
char * User
 
}; 
 
short Mode
 
short Uhst
 
short Ulen
 
int Unum
 
XrdOfsHanXprxprP
 

Detailed Description

Definition at line 198 of file XrdOfsHandle.cc.

Constructor & Destructor Documentation

◆ XrdOfsHanPsc()

XrdOfsHanPsc::XrdOfsHanPsc ( )
inline

Definition at line 217 of file XrdOfsHandle.cc.

217  : User(0), xprP(0), Unum(0), Ulen(0),
218  Uhst(0), Mode(0) {}
XrdOfsHanXpr * xprP

Referenced by Alloc().

+ Here is the caller graph for this function:

◆ ~XrdOfsHanPsc()

XrdOfsHanPsc::~XrdOfsHanPsc ( )
inline

Definition at line 219 of file XrdOfsHandle.cc.

219 {}

Member Function Documentation

◆ Alloc()

XrdOfsHanPsc * XrdOfsHanPsc::Alloc ( )
static

Definition at line 607 of file XrdOfsHandle.cc.

608 {
609  XrdOfsHanPsc *pP;
610 
611 // Grab or allocate an object
612 //
613  pscMutex.Lock();
614  if ((pP = Free)) {Free = pP->Next; pP->Next = 0;}
615  else pP = new XrdOfsHanPsc;
616  pscMutex.UnLock();
617 
618  return pP;
619 }

References XrdOfsHanPsc(), XrdSysMutex::Lock(), and XrdSysMutex::UnLock().

Referenced by XrdOfsHandle::PoscSet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Recycle()

void XrdOfsHanPsc::Recycle ( void  )

Definition at line 625 of file XrdOfsHandle.cc.

626 {
627 
628 // Release any storgae appendages and clear other field
629 //
630  if (xprP) {xprP->Deref(); xprP = 0;}
631  if (User) free(User);
632  Unum = 0;
633  Ulen = 0;
634  Uhst = 0;
635  Mode = 0;
636 
637 // Place element on free chain. We keep them all as there are never too many
638 //
639  pscMutex.Lock();
640  Next = Free; Free = this;
641  pscMutex.UnLock();
642 }

References XrdOfsHanXpr::Deref(), XrdSysMutex::Lock(), Mode, Uhst, Ulen, XrdSysMutex::UnLock(), Unum, and xprP.

Referenced by XrdOfsHandle::PoscGet(), and XrdOfsHandle::Retire().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ 

union { ... }

◆ Mode

short XrdOfsHanPsc::Mode

Definition at line 210 of file XrdOfsHandle.cc.

Referenced by XrdOfsHandle::PoscGet(), XrdOfsHandle::PoscSet(), and Recycle().

◆ Uhst

short XrdOfsHanPsc::Uhst

Definition at line 209 of file XrdOfsHandle.cc.

Referenced by XrdOfsHandle::PoscSet(), and Recycle().

◆ Ulen

short XrdOfsHanPsc::Ulen

Definition at line 208 of file XrdOfsHandle.cc.

Referenced by XrdOfsHandle::PoscSet(), and Recycle().

◆ Unum

int XrdOfsHanPsc::Unum

Definition at line 207 of file XrdOfsHandle.cc.

Referenced by XrdOfsHandle::PoscGet(), XrdOfsHandle::PoscSet(), and Recycle().

◆ xprP

XrdOfsHanXpr* XrdOfsHanPsc::xprP

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