Qt 4.8
Public Functions | Properties | List of all members
QMutexUnlocker Class Reference

Public Functions

 QMutexUnlocker (QMutex *m)
 
void unlock ()
 
 ~QMutexUnlocker ()
 

Properties

QMutexmtx
 

Detailed Description

Definition at line 116 of file qcoreapplication.cpp.

Constructors and Destructors

◆ QMutexUnlocker()

QMutexUnlocker::QMutexUnlocker ( QMutex m)
inlineexplicit

Definition at line 119 of file qcoreapplication.cpp.

120  : mtx(m)
121  { }

◆ ~QMutexUnlocker()

QMutexUnlocker::~QMutexUnlocker ( )
inline

Definition at line 122 of file qcoreapplication.cpp.

122 { unlock(); }

Functions

◆ unlock()

void QMutexUnlocker::unlock ( )
inline

Definition at line 123 of file qcoreapplication.cpp.

Referenced by QCoreApplication::postEvent(), and ~QMutexUnlocker().

123 { if (mtx) mtx->unlock(); mtx = 0; }
void unlock()
Unlocks the mutex.
Definition: qmutex.cpp:296

Properties

◆ mtx

QMutex* QMutexUnlocker::mtx
private

Definition at line 128 of file qcoreapplication.cpp.

Referenced by unlock().


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