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 27 of file XrdReadv.cc.

Constructor & Destructor Documentation

MutexSentry::MutexSentry ( pthread_mutex_t &  mutex)
inline

Definition at line 30 of file XrdReadv.cc.

References m_mutex.

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

Definition at line 32 of file XrdReadv.cc.

References m_mutex.

32 {pthread_mutex_unlock(&m_mutex);}
pthread_mutex_t & m_mutex
Definition: XrdReadv.cc:35

Member Data Documentation

pthread_mutex_t& MutexSentry::m_mutex
private

Definition at line 35 of file XrdReadv.cc.

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