XRootD
XrdSutCERef Class Reference

#include <XrdSutCacheEntry.hh>

+ Collaboration diagram for XrdSutCERef:

Public Member Functions

 XrdSutCERef ()
 
 ~XrdSutCERef ()
 
void ReadLock (XrdSysRWLock *lock=0)
 
void Set (XrdSysRWLock *lock)
 
void UnLock (bool reset=true)
 
void WriteLock (XrdSysRWLock *lock=0)
 

Protected Attributes

XrdSysRWLockrwlock
 

Detailed Description

Definition at line 99 of file XrdSutCacheEntry.hh.

Constructor & Destructor Documentation

◆ XrdSutCERef()

XrdSutCERef::XrdSutCERef ( )
inline

Definition at line 122 of file XrdSutCacheEntry.hh.

122 : rwlock(0) {}
XrdSysRWLock * rwlock

◆ ~XrdSutCERef()

XrdSutCERef::~XrdSutCERef ( )
inline

Definition at line 124 of file XrdSutCacheEntry.hh.

124 {if (rwlock) UnLock(); rwlock = 0; }
void UnLock(bool reset=true)

References rwlock, and UnLock().

+ Here is the call graph for this function:

Member Function Documentation

◆ ReadLock()

void XrdSutCERef::ReadLock ( XrdSysRWLock lock = 0)
inline

Definition at line 103 of file XrdSutCacheEntry.hh.

104  { if (lock) Set(lock);
105  rwlock->ReadLock();
106  };
void Set(XrdSysRWLock *lock)

References XrdSysRWLock::ReadLock(), rwlock, and Set().

+ Here is the call graph for this function:

◆ Set()

void XrdSutCERef::Set ( XrdSysRWLock lock)
inline

Definition at line 113 of file XrdSutCacheEntry.hh.

114  {if (rwlock) {if (rwlock != lock) rwlock->UnLock();
115  else return;
116  }
117  rwlock = lock;
118  };

References rwlock, and XrdSysRWLock::UnLock().

Referenced by XrdSecProtocolgsi::Authenticate(), ReadLock(), and WriteLock().

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

◆ UnLock()

void XrdSutCERef::UnLock ( bool  reset = true)
inline

Definition at line 120 of file XrdSutCacheEntry.hh.

120 {if (rwlock) {rwlock->UnLock(); if (reset) rwlock = 0; }}

References rwlock, and XrdSysRWLock::UnLock().

Referenced by ~XrdSutCERef(), XrdSecProtocolgsi::Authenticate(), and XrdSecProtocolgsi::Init().

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

◆ WriteLock()

void XrdSutCERef::WriteLock ( XrdSysRWLock lock = 0)
inline

Definition at line 108 of file XrdSutCacheEntry.hh.

109  { if (lock) Set(lock);
110  rwlock->WriteLock();
111  };

References rwlock, Set(), and XrdSysRWLock::WriteLock().

+ Here is the call graph for this function:

Member Data Documentation

◆ rwlock

XrdSysRWLock* XrdSutCERef::rwlock
protected

Definition at line 126 of file XrdSutCacheEntry.hh.

Referenced by ~XrdSutCERef(), ReadLock(), Set(), UnLock(), and WriteLock().


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