XrdSysXSLock Class Reference

#include <XrdSysXSLock.hh>

List of all members.

Public Member Functions

void Lock (const XrdSysXS_Type usage)
void UnLock (const XrdSysXS_Type usage=xs_None)
 XrdSysXSLock ()
 ~XrdSysXSLock ()

Private Attributes

XrdSysXS_Type cur_usage
int cur_count
int exc_wait
int shr_wait
int toggle
XrdSysMutex LockContext
XrdSysSemaphore WantShr
XrdSysSemaphore WantExc


Detailed Description

Definition at line 26 of file XrdSysXSLock.hh.


Constructor & Destructor Documentation

XrdSysXSLock::XrdSysXSLock (  )  [inline]

Definition at line 34 of file XrdSysXSLock.hh.

References cur_count, cur_usage, exc_wait, shr_wait, toggle, and xs_None.

XrdSysXSLock::~XrdSysXSLock (  ) 

Definition at line 22 of file XrdSysXSLock.cc.

References cur_count, exc_wait, XrdSysMutex::Lock(), LockContext, shr_wait, and XrdSysMutex::UnLock().


Member Function Documentation

void XrdSysXSLock::Lock ( const XrdSysXS_Type  usage  ) 

Definition at line 39 of file XrdSysXSLock.cc.

References cur_count, cur_usage, exc_wait, XrdSysMutex::Lock(), LockContext, shr_wait, XrdSysMutex::UnLock(), XrdSysSemaphore::Wait(), WantExc, WantShr, and xs_Shared.

Referenced by XrdAccAccess::Access(), and XrdAccAccess::SwapTabs().

void XrdSysXSLock::UnLock ( const XrdSysXS_Type  usage = xs_None  ) 

Definition at line 82 of file XrdSysXSLock.cc.

References cur_count, cur_usage, exc_wait, XrdSysMutex::Lock(), LockContext, XrdSysSemaphore::Post(), shr_wait, toggle, XrdSysMutex::UnLock(), WantExc, WantShr, and xs_Shared.

Referenced by XrdAccAccess::Access(), and XrdAccAccess::SwapTabs().


Member Data Documentation

XrdSysXS_Type XrdSysXSLock::cur_usage [private]

Definition at line 42 of file XrdSysXSLock.hh.

Referenced by Lock(), UnLock(), and XrdSysXSLock().

int XrdSysXSLock::cur_count [private]

Definition at line 43 of file XrdSysXSLock.hh.

Referenced by Lock(), UnLock(), XrdSysXSLock(), and ~XrdSysXSLock().

int XrdSysXSLock::exc_wait [private]

Definition at line 44 of file XrdSysXSLock.hh.

Referenced by Lock(), UnLock(), XrdSysXSLock(), and ~XrdSysXSLock().

int XrdSysXSLock::shr_wait [private]

Definition at line 45 of file XrdSysXSLock.hh.

Referenced by Lock(), UnLock(), XrdSysXSLock(), and ~XrdSysXSLock().

int XrdSysXSLock::toggle [private]

Definition at line 46 of file XrdSysXSLock.hh.

Referenced by UnLock(), and XrdSysXSLock().

XrdSysMutex XrdSysXSLock::LockContext [private]

Definition at line 48 of file XrdSysXSLock.hh.

Referenced by Lock(), UnLock(), and ~XrdSysXSLock().

XrdSysSemaphore XrdSysXSLock::WantShr [private]

Definition at line 49 of file XrdSysXSLock.hh.

Referenced by Lock(), and UnLock().

XrdSysSemaphore XrdSysXSLock::WantExc [private]

Definition at line 50 of file XrdSysXSLock.hh.

Referenced by Lock(), and UnLock().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:47 2011 for ROOT_528-00b_version by  doxygen 1.5.1