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_kqueue_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_kqueue_p.h')
-rw-r--r-- | src/corelib/io/qfilesystemwatcher_kqueue_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/io/qfilesystemwatcher_kqueue_p.h b/src/corelib/io/qfilesystemwatcher_kqueue_p.h index 6e36bcd8e5..41afbadf6a 100644 --- a/src/corelib/io/qfilesystemwatcher_kqueue_p.h +++ b/src/corelib/io/qfilesystemwatcher_kqueue_p.h @@ -85,7 +85,6 @@ private: int kqfd; - QMutex mutex; QHash<QString, int> pathToID; QHash<int, QString> idToPath; QSocketNotifier notifier; |