casa
$Rev:20696$
|
Implementation of PlotMutex for QThreads using a QMutex. More...
#include <PlotMSThread.qo.h>
Public Member Functions | |
PlotMSMutex () | |
Constructor. | |
~PlotMSMutex () | |
Destructor. | |
void | lock () |
Implements PlotMutex::lock(). | |
void | unlock () |
Implements PlotMutex::unlock(). | |
bool | tryLock () |
Implements PlotMutex::tryLock(). | |
Private Attributes | |
QMutex | itsMutex_ |
Mutex. |
Implementation of PlotMutex for QThreads using a QMutex.
Note: this is a duplication of QPMutex in the QwtPlotter, but this is a small and simple class and its re-implementation avoids a dependency on the QwtPlotter.
Definition at line 156 of file PlotMSThread.qo.h.
casa::PlotMSMutex::PlotMSMutex | ( | ) | [inline] |
Constructor.
Definition at line 159 of file PlotMSThread.qo.h.
casa::PlotMSMutex::~PlotMSMutex | ( | ) | [inline] |
Destructor.
Definition at line 162 of file PlotMSThread.qo.h.
void casa::PlotMSMutex::lock | ( | ) | [inline, virtual] |
Implements PlotMutex::lock().
Implements casa::PlotMutex.
Definition at line 166 of file PlotMSThread.qo.h.
References itsMutex_.
bool casa::PlotMSMutex::tryLock | ( | ) | [inline, virtual] |
Implements PlotMutex::tryLock().
Implements casa::PlotMutex.
Definition at line 172 of file PlotMSThread.qo.h.
References itsMutex_.
void casa::PlotMSMutex::unlock | ( | ) | [inline, virtual] |
Implements PlotMutex::unlock().
Implements casa::PlotMutex.
Definition at line 169 of file PlotMSThread.qo.h.
References itsMutex_.
QMutex casa::PlotMSMutex::itsMutex_ [private] |