diff options
author | Harald Fernengel <harald@trolltech.com> | 2009-08-17 13:00:55 (GMT) |
---|---|---|
committer | Harald Fernengel <harald@trolltech.com> | 2009-08-17 13:02:49 (GMT) |
commit | d24029e3d4639f1300e7a68858936911df969f69 (patch) | |
tree | 386cb5591d7727681ee3ca37bebc67a685315939 /src/corelib | |
parent | 5e3dd575014c11f13b7d1c056a13cc103ff96b0d (diff) | |
download | Qt-d24029e3d4639f1300e7a68858936911df969f69.zip Qt-d24029e3d4639f1300e7a68858936911df969f69.tar.gz Qt-d24029e3d4639f1300e7a68858936911df969f69.tar.bz2 |
rename QLockedMutexUnlocker to QMutexUnlocker
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 4a4817d..4e9096a 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -96,17 +96,17 @@ QT_BEGIN_NAMESPACE -class QLockedMutexUnlocker +class QMutexUnlocker { public: - inline explicit QLockedMutexUnlocker(QMutex *m) + inline explicit QMutexUnlocker(QMutex *m) : mtx(m) { } - inline ~QLockedMutexUnlocker() { unlock(); } + inline ~QMutexUnlocker() { unlock(); } inline void unlock() { if (mtx) mtx->unlock(); mtx = 0; } private: - Q_DISABLE_COPY(QLockedMutexUnlocker) + Q_DISABLE_COPY(QMutexUnlocker) QMutex *mtx; }; @@ -1106,7 +1106,7 @@ void QCoreApplication::postEvent(QObject *receiver, QEvent *event, int priority) data->postEventList.mutex.lock(); } - QLockedMutexUnlocker locker(&data->postEventList.mutex); + QMutexUnlocker locker(&data->postEventList.mutex); // if this is one of the compressible events, do compression if (receiver->d_func()->postedEvents |