|
xrootd
|
#include <XrdSysXSLock.hh>

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 |
| XrdSysXSLock::XrdSysXSLock | ( | ) | [inline] |
| XrdSysXSLock::~XrdSysXSLock | ( | ) |
References LockContext, XrdSysMutex::Lock(), cur_count, shr_wait, exc_wait, and XrdSysMutex::UnLock().
| void XrdSysXSLock::Lock | ( | const XrdSysXS_Type | usage | ) |
References LockContext, XrdSysMutex::Lock(), cur_count, xs_Shared, cur_usage, exc_wait, shr_wait, XrdSysMutex::UnLock(), WantShr, XrdSysSemaphore::Wait(), and WantExc.
Referenced by XrdAccAccess::Access(), XrdAccAccess::SwapTabs(), XrdOucCacheData::Detach(), and XrdOucCacheData::MrSw::MrSw().
| void XrdSysXSLock::UnLock | ( | const XrdSysXS_Type | usage = xs_None | ) |
References LockContext, XrdSysMutex::Lock(), cur_count, XrdSysMutex::UnLock(), cur_usage, xs_Shared, exc_wait, toggle, shr_wait, WantExc, XrdSysSemaphore::Post(), and WantShr.
Referenced by XrdAccAccess::Access(), XrdAccAccess::SwapTabs(), XrdOucCacheData::Detach(), XrdOucCacheData::MrSw::UnLock(), and XrdOucCacheData::MrSw::~MrSw().
int XrdSysXSLock::cur_count [private] |
Referenced by ~XrdSysXSLock(), Lock(), and UnLock().
XrdSysXS_Type XrdSysXSLock::cur_usage [private] |
int XrdSysXSLock::exc_wait [private] |
Referenced by ~XrdSysXSLock(), Lock(), and UnLock().
XrdSysMutex XrdSysXSLock::LockContext [private] |
Referenced by ~XrdSysXSLock(), Lock(), and UnLock().
int XrdSysXSLock::shr_wait [private] |
Referenced by ~XrdSysXSLock(), Lock(), and UnLock().
int XrdSysXSLock::toggle [private] |
Referenced by UnLock().
XrdSysSemaphore XrdSysXSLock::WantExc [private] |
XrdSysSemaphore XrdSysXSLock::WantShr [private] |
1.7.5