CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
MutexSentry Class Reference

Public Member Functions

 MutexSentry (pthread_mutex_t &mutex)
 
 ~MutexSentry ()
 

Private Attributes

pthread_mutex_t & m_mutex
 

Detailed Description

Definition at line 29 of file XrdReadv.cc.

Constructor & Destructor Documentation

MutexSentry::MutexSentry ( pthread_mutex_t &  mutex)
inline

Definition at line 32 of file XrdReadv.cc.

References m_mutex.

32 : m_mutex(mutex) {pthread_mutex_lock(&m_mutex);}
static boost::mutex mutex
Definition: LHEProxy.cc:11
pthread_mutex_t & m_mutex
Definition: XrdReadv.cc:37
MutexSentry::~MutexSentry ( )
inline

Definition at line 34 of file XrdReadv.cc.

References m_mutex.

34 {pthread_mutex_unlock(&m_mutex);}
pthread_mutex_t & m_mutex
Definition: XrdReadv.cc:37

Member Data Documentation

pthread_mutex_t& MutexSentry::m_mutex
private

Definition at line 37 of file XrdReadv.cc.

Referenced by MutexSentry(), and ~MutexSentry().