diff options
author | Volker Hilsheimer <volker.hilsheimer@nokia.com> | 2010-04-20 16:04:22 (GMT) |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@nokia.com> | 2010-04-20 16:04:22 (GMT) |
commit | a087cfe4049292b726a5fea34f552ad86b44c2ae (patch) | |
tree | 365103a1340c190069ad74c59c373cbb5ec5967c /src/corelib/io/qfilesystemwatcher.cpp | |
parent | 90bac7f779b642ef1db5363012a994784ad029c4 (diff) | |
download | Qt-a087cfe4049292b726a5fea34f552ad86b44c2ae.zip Qt-a087cfe4049292b726a5fea34f552ad86b44c2ae.tar.gz Qt-a087cfe4049292b726a5fea34f552ad86b44c2ae.tar.bz2 |
Document that QFileSystemWatcher needs to be destroyed before ~QCoreApp
Fixes: QT-3305
Rev-By: Denis
Diffstat (limited to 'src/corelib/io/qfilesystemwatcher.cpp')
-rw-r--r-- | src/corelib/io/qfilesystemwatcher.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/io/qfilesystemwatcher.cpp b/src/corelib/io/qfilesystemwatcher.cpp index 00af3fd..18c3c9f 100644 --- a/src/corelib/io/qfilesystemwatcher.cpp +++ b/src/corelib/io/qfilesystemwatcher.cpp @@ -426,6 +426,11 @@ QFileSystemWatcher::QFileSystemWatcher(const QStringList &paths, QObject *parent /*! Destroys the file system watcher. + + \note To avoid deadlocks on shutdown, all instances of QFileSystemWatcher + need to be destroyed before QCoreApplication. Note that passing + QCoreApplication::instance() as the parent object when creating + QFileSystemWatcher is not sufficient. */ QFileSystemWatcher::~QFileSystemWatcher() { |