XRootD
XrdPosixStats Class Reference

#include <XrdPosixStats.hh>

+ Collaboration diagram for XrdPosixStats:

Classes

struct  PosixStats
 

Public Member Functions

 XrdPosixStats ()
 
 ~XrdPosixStats ()
 
void Add (long long &Dest, long long Val)
 
void Count (long long &Dest)
 
void Get (XrdPosixStats &D)
 
void Lock ()
 
void Set (long long &Dest, long long Val)
 
void UnLock ()
 

Public Attributes

struct XrdPosixStats::PosixStats X
 

Detailed Description

Definition at line 38 of file XrdPosixStats.hh.


Class Documentation

◆ XrdPosixStats::PosixStats

struct XrdPosixStats::PosixStats

Definition at line 42 of file XrdPosixStats.hh.

+ Collaboration diagram for XrdPosixStats::PosixStats:
Class Members
long long CloseErrs
long long Closes
long long OpenErrs
long long Opens

Constructor & Destructor Documentation

◆ XrdPosixStats()

XrdPosixStats::XrdPosixStats ( )
inline

Definition at line 68 of file XrdPosixStats.hh.

68 {memset(&X, 0, sizeof(PosixStats));}
struct XrdPosixStats::PosixStats X

References X.

◆ ~XrdPosixStats()

XrdPosixStats::~XrdPosixStats ( )
inline

Definition at line 69 of file XrdPosixStats.hh.

69 {}

Member Function Documentation

◆ Add()

void XrdPosixStats::Add ( long long &  Dest,
long long  Val 
)
inline

Definition at line 56 of file XrdPosixStats.hh.

57  {sMutex.Lock(); Dest += Val; sMutex.UnLock();}

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

+ Here is the call graph for this function:

◆ Count()

void XrdPosixStats::Count ( long long &  Dest)
inline

Definition at line 59 of file XrdPosixStats.hh.

60  {AtomicBeg(sMutex); AtomicInc(Dest); AtomicEnd(sMutex);}
#define AtomicInc(x)
#define AtomicBeg(Mtx)
#define AtomicEnd(Mtx)

References AtomicBeg, AtomicEnd, and AtomicInc.

Referenced by XrdPosixFile::~XrdPosixFile(), and XrdPosixFile::Close().

+ Here is the caller graph for this function:

◆ Get()

void XrdPosixStats::Get ( XrdPosixStats D)
inline

Definition at line 50 of file XrdPosixStats.hh.

51  {sMutex.Lock();
52  memcpy(&D.X, &X, sizeof(PosixStats));
53  sMutex.UnLock();
54  }

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

Referenced by XrdPosixConfig::Stats().

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

◆ Lock()

void XrdPosixStats::Lock ( )
inline

Definition at line 65 of file XrdPosixStats.hh.

65 {sMutex.Lock();}

References XrdSysMutex::Lock().

+ Here is the call graph for this function:

◆ Set()

void XrdPosixStats::Set ( long long &  Dest,
long long  Val 
)
inline

Definition at line 62 of file XrdPosixStats.hh.

63  {sMutex.Lock(); Dest = Val; sMutex.UnLock();}

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

+ Here is the call graph for this function:

◆ UnLock()

void XrdPosixStats::UnLock ( )
inline

Definition at line 66 of file XrdPosixStats.hh.

66 {sMutex.UnLock();}

References XrdSysMutex::UnLock().

Referenced by XrdCmsRRQ::Add(), XrdCmsRRQ::Ready(), and XrdCmsRRQ::Respond().

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

Member Data Documentation

◆ X

struct XrdPosixStats::PosixStats XrdPosixStats::X

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