Public Member Functions | Private Attributes | List of all members
QMutexLocker Class Reference

#include <qmutex.h>

Public Member Functions

 QMutexLocker (QMutex *m)
 
 ~QMutexLocker ()
 
QMutexmutex () const
 

Private Attributes

QMutexm_mutex
 

Detailed Description

Definition at line 66 of file qmutex.h.

Constructor & Destructor Documentation

QMutexLocker::QMutexLocker ( QMutex m)
inline

Definition at line 69 of file qmutex.h.

69  : m_mutex(m)
70  {
71  m_mutex->lock();
72  }
void lock()
Definition: qmutex.cpp:58
QMutex * m_mutex
Definition: qmutex.h:80
QMutexLocker::~QMutexLocker ( )
inline

Definition at line 73 of file qmutex.h.

74  {
75  m_mutex->unlock();
76  }
void unlock()
Definition: qmutex.cpp:85
QMutex * m_mutex
Definition: qmutex.h:80

Member Function Documentation

QMutex* QMutexLocker::mutex ( ) const
inline

Definition at line 77 of file qmutex.h.

77 { return m_mutex; }
QMutex * m_mutex
Definition: qmutex.h:80

Member Data Documentation

QMutex* QMutexLocker::m_mutex
private

Definition at line 80 of file qmutex.h.


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