summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2010-04-20 16:04:22 (GMT)
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2010-04-20 16:04:22 (GMT)
commita087cfe4049292b726a5fea34f552ad86b44c2ae (patch)
tree365103a1340c190069ad74c59c373cbb5ec5967c /src/corelib/io
parent90bac7f779b642ef1db5363012a994784ad029c4 (diff)
downloadQt-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')
-rw-r--r--src/corelib/io/qfilesystemwatcher.cpp5
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()
{