XRootD
XrdSysCondVarHelper Class Reference

#include <XrdSysPthread.hh>

+ Collaboration diagram for XrdSysCondVarHelper:

Public Member Functions

 XrdSysCondVarHelper (XrdSysCondVar &CndVar)
 
 XrdSysCondVarHelper (XrdSysCondVar *CndVar=0)
 
 ~XrdSysCondVarHelper ()
 
void Lock (XrdSysCondVar *CndVar)
 
void UnLock ()
 

Detailed Description

Definition at line 128 of file XrdSysPthread.hh.

Constructor & Destructor Documentation

◆ XrdSysCondVarHelper() [1/2]

XrdSysCondVarHelper::XrdSysCondVarHelper ( XrdSysCondVar CndVar = 0)
inline

Definition at line 142 of file XrdSysPthread.hh.

143  {if (CndVar) CndVar->Lock();
144  cnd = CndVar;
145  }

◆ XrdSysCondVarHelper() [2/2]

XrdSysCondVarHelper::XrdSysCondVarHelper ( XrdSysCondVar CndVar)
inline

Definition at line 146 of file XrdSysPthread.hh.

147  {CndVar.Lock();
148  cnd = &CndVar;
149  }

References XrdSysCondVar::Lock().

+ Here is the call graph for this function:

◆ ~XrdSysCondVarHelper()

XrdSysCondVarHelper::~XrdSysCondVarHelper ( )
inline

Definition at line 151 of file XrdSysPthread.hh.

151 {if (cnd) UnLock();}

References UnLock().

+ Here is the call graph for this function:

Member Function Documentation

◆ Lock()

void XrdSysCondVarHelper::Lock ( XrdSysCondVar CndVar)
inline

Definition at line 132 of file XrdSysPthread.hh.

133  {if (cnd) {if (cnd != CndVar) cnd->UnLock();
134  else return;
135  }
136  CndVar->Lock();
137  cnd = CndVar;
138  };

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

+ Here is the call graph for this function:

◆ UnLock()

void XrdSysCondVarHelper::UnLock ( )
inline

Definition at line 140 of file XrdSysPthread.hh.

140 {if (cnd) {cnd->UnLock(); cnd = 0;}}

References XrdSysCondVar::UnLock().

Referenced by ~XrdSysCondVarHelper().

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

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