diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2012-01-11 09:00:41 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-12 00:45:13 +0100 |
commit | 93a466c6fc3c455dcc9bf1292cc6a2725287a94a (patch) | |
tree | 35197fea2705546d8b40180242459ba48956f4c2 /src/corelib/io/qfilesystemwatcher_polling_p.h | |
parent | d6e0306a90597ff17931dba0a11a593c5f1a7221 (diff) |
Remove unnecessary QMutexes in QFileSystemWatcher implementations
The polling, inotify, and kqueue implementations are no longer threaded,
and as such, do not need mutexes to protect their internal data (since
QFileSystemWatcher itself is not documented as a thread-safe API).
The Windows implementation is unchanged as it uses multiple threads
explicitly.
Change-Id: Ia82510397e576bf704ce3aed3d776b58b39f7ff3
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Diffstat (limited to 'src/corelib/io/qfilesystemwatcher_polling_p.h')
-rw-r--r-- | src/corelib/io/qfilesystemwatcher_polling_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/io/qfilesystemwatcher_polling_p.h b/src/corelib/io/qfilesystemwatcher_polling_p.h index 1fae542561..717d438582 100644 --- a/src/corelib/io/qfilesystemwatcher_polling_p.h +++ b/src/corelib/io/qfilesystemwatcher_polling_p.h @@ -105,7 +105,6 @@ class QPollingFileSystemWatcherEngine : public QFileSystemWatcherEngine } }; - mutable QMutex mutex; QHash<QString, FileInfo> files, directories; public: |