CMS 3D CMS Logo

Public Member Functions | Private Attributes

MutexSentry Class Reference

List of all members.

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.

: m_mutex(mutex) {pthread_mutex_lock(&m_mutex);}
MutexSentry::~MutexSentry ( ) [inline]

Definition at line 32 of file XrdReadv.cc.

References m_mutex.

{pthread_mutex_unlock(&m_mutex);}

Member Data Documentation

pthread_mutex_t& MutexSentry::m_mutex [private]

Definition at line 35 of file XrdReadv.cc.

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